Error 400: Attachment is Empty for Solarwinds SGC

DarOB
Tera Contributor

Hello,

 

I am getting the below error when running a data source from the Solarwinds Service Graph Connector:

com.snc.process_flow.exception.ProcessAutomationException: Error creating Attachment raw_page_stream : Method failed: (/api/now/hub/temporaryattachment) with code: 400 with reason: Attachment is empty

 

I have confirmed that the credentials being used can login to the solarwinds instance.

glide.attachment.extensions also doesn't have a value and allows all file extensions as I have seen a KB saying that could be the problem ( KB0866858 )

 

Can anybody please advise?

 

Thanks

15 REPLIES 15

AJ-TechTrek
Giga Sage
Giga Sage

Hi @DarOB ,

 

Please check the SGC Solarwind connector must be updated version if not update the latest version from ServiceNow Store, Also check for below things.

 

Be sure that the SolarWinds Account has sufficient roles to pull the attachment you are targeting. The REST call to SolarWinds fails with a 403 error which is a permissions error, and the flow has error "Error creating Attachment raw_page_stream : Method failed: (/api/now/hub/temporaryattachment) with code: 400 with reason: Attachment is empty".
My Solarwinds admin changed the user I was using for the connector to an admin.
I was able to connect and then he changed it back to read only access for the user and it kept working.
You might want to try that.
Also, the connection type I'm using is Data Stream (IntegrationHub)

 

Also refer this as well, Might be any of one will help you.

 

  1. This problem has been fixed in KB0866858.

    1. If you are able to upgrade, review the Fixed In section (within KB0866858) to determine the latest version with a permanent fix your instance can be upgraded to.
    2. The workaround is to add a valid extension to the attachment_name from system property "glide.attachment.extensions", ie "rest_action_response_boy.json"
    3. Alternatively, set the system property "glide.attachment.extensions" to null/empty.

Please appreciate the efforts of community contributors by marking appropriate response as Mark my Answer Helpful or Accept Solution this may help other community users to follow correct solution in future.

 

Thanks

AJ

Linkedin Profile:- https://www.linkedin.com/in/ajay-kumar-66a91385/

ServiceNow Community Rising Star 2024

Hakan1
Tera Contributor

Hi,

What port are you using within the SGC connection record?

 

DarOB
Tera Contributor

@hakan 17778

Hakan1
Tera Contributor

my problem was resolved after changing the port number to 17774