Skip to content

Report Service string/integer problem #50

Open
@JoeKuhns

Description

@JoeKuhns

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:

	<p style="margin-left:10px">
		File: /Library/Server/Web/Data/Sites/Default/stockit2/application/vendor/robgridley/pace-api/src/Soap/SoapClient.php<br />
		Line: 48<br />
		Function: __call			</p>
	

		<p style="margin-left:10px">
		File: /Library/Server/Web/Data/Sites/Default/stockit2/application/vendor/robgridley/pace-api/src/Services/ReportService.php<br />
		Line: 17<br />
		Function: __call			</p>
	

	
		<p style="margin-left:10px">
		File: /Library/Server/Web/Data/Sites/Default/stockit2/application/vendor/robgridley/pace-api/src/Report/Builder.php<br />
		Line: 135<br />
		Function: executeReport			</p>`

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions