Error calling GetJournals

Discussion in 'Developers Forum' started by matthewsteeples, Jul 11, 2011.

  1. matthewsteeples New Member

    Hi,

    I'm having an error returned to me when calling GetJournals through the api. The error is "Year, Month, and Day parameters describe an un-representable DateTime.".

    I'm going to try and investigate to see if I can filter out some of the transactions so I can find where the record is in the results.

    Regards,
    Matthew
  2. matthewsteeples New Member

    I'm getting this on GetInvoice and GetReceipts as well. I don't know if it will help (and whether you'll want to change this) but GetReceipts gives me a stack trace too!

    Year, Month, and Day parameters describe an un-representable DateTime. at System.DateTime.DateToTicks(Int32 year, Int32 month, Int32 day)
    at System.DateTime..ctor(Int32 year, Int32 month, Int32 day)
    at KashFlow.SharedFuncs.ISOToDateTime(Int32 iso) in c:\Data\wwwroot\sec.kf\api\App_Code\Funcs.cs:line 146
    at KashFlow.wsDb.GetReceipt(Int32 RecNumber, Int32 UserID) in c:\Data\wwwroot\sec.kf\api\App_Code\DataClasses\wsDb.cs:line 3011
    at KashFlow.wsDb.GetReceipts(Int32 UserID) in c:\Data\wwwroot\sec.kf\api\App_Code\DataClasses\wsDb.cs:line 3104
    at KashFlow.KashFlowAPI.GetReceipts(String UserName, String Password, String& Status, String& StatusDetail) in c:\Data\wwwroot\sec.kf\api\App_Code\Service.cs:line 2238
  3. matthewsteeples New Member

    I've probably reached the limit of the amount of diagnosing I can do on this now, but the other two pieces of information that might be useful are 314642495-111655 and 314642495-112034. These were the error codes I got when viewing a few invoices.
  4. robgoodliffe New Member

    hi matthew i remember getting a similar error for get receipts. Sending the date format like this worked for me: yy-mm-dd

Share This Page