When retrieving full metadata I am facing issue: 'ERR_STRING_TOO_LONG'}Error: Cannot create a string longer than 0x1fffffe8 characters at Buffer.toString

Issue #2123 invalid
Nagendra Singh created an issue

I know there is a limitation of 10000 files in metadata api, but I think you already resolved it within Illuminated cloud plugin and there was no timeout coming till now.

Somehow this popped up again. I am not able to retrieve full package for creating a master repo in GIT.

When I try to fetch all the metadata it used to work properly. But now it fails. With this error message.

I am using webstorm with Illuminated cloud 2

2022-06-03 00:08:07,180 [59212418]   WARN - #c.i.i.b.ForceComSfdxMetadataRetriever - Failed to retrieve metadata.

Status: FAILED
Message: MetadataTransferError
Metadata API request failed: The client has timed out.

Comments (7)

  1. Scott Wells repo owner

    Hi. IC2 doesn't perform any kind of batching of retrieved objects. You will need to break this retrieval up into smaller batches that fit within the constraints of the Salesforce retrieval APIs.

  2. Scott Wells repo owner

    No, there's never been a time that IC2 would perform any special handling of large retrieval requests to overcome the API limitation. A few people have inquired about it over the years with the last being in 2020. The linked StackExchange thread doesn't say that I solved it, just that I was "likely to have faced and resolved this sort of problem [my]self". I've certainly faced it, but no, it hasn't been solved. I certainly appreciate the vote of confidence from Phil, though!

    Also note that these days, for metadata retrievals of source format projects, IC2 uses the CLI's force:source:retrieve command. IC2 only uses the API directly for retrievals of metadata format projects.

  3. Log in to comment