-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Report Service string/integer problem #50
Comments
It looks like any report which has an integer base object key is affected. The API client isn't enforcing the type, but the WSDL for the report service specifies the type as string. This looks like a Pace bug. You can work around it by duplicating the report, removing the base object, then passing the key via a parameter instead. |
Thanks Rob, that makes sense now. I should be able to get this to work. Should this be noted in the readme so others don't pull their hair out? |
So, I hate to say this, but I have reports with the same baseObject key that work. So it must be something else. I have 2 reports that are similar, so I am going to take the working one and slowly rebuild it to match the non working one and see when it fails. I'll let you know. |
Okay, possibly another clue. If I take a report that works and in Pace duplicate it, and change nothing, just dup it. The duped one fails. |
Hi All,
On about 60% of our reports I get the following error when using the new report service.
`
Type: SoapFault
Message: java.lang.String cannot be cast to java.lang.Integer
Filename: /Library/Server/Web/Data/Sites/Default/stockit2/application/vendor/robgridley/pace-api/src/Soap/SoapClient.php
Line Number: 48
Backtrace:
I am calling the reports like so....
$fred = $this->pace->report(10443)->baseObjectKey((int)$shipid)->get();
I can run many reports, default or custom, but not all. I even took the one report I really need and in crystal one by one deleted each field and element, and kept trying it until it was empty and I still got the error. Any thought or ideas? Maybe a way to get a more descriptive error message? I get that something in the line is getting a string when it wants an integer, but I have no idea where.
Thanks as usual.
The text was updated successfully, but these errors were encountered: