Menu

#226 Primavera XER files without currency information

v1.0_(example)
closed-fixed
nobody
None
5
2013-08-02
2013-07-31
No

The method "processHeader()" in the PrimaveraXERFileReader class, take the 8th header record to get the default currency, but (I don't when occurs) in some cases the field is empty, I suppose when a default currency wasn't defined in Primavera, causing an IndexOutOfRange exception. The method has one line:

Says:
m_defaultCurrencyName = record.get(8);

My workaround (assuming USD by default):
m_defaultCurrencyName = record.size() > 8 ? record.get(8) : "USD";

Discussion

  • Jon Iles

    Jon Iles - 2013-08-02

    Thanks for your fix, I have added this to the code in CVS.

     
  • Jon Iles

    Jon Iles - 2013-08-02
    • status: open --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB