Skip to main content

#Sandbox9 diskutieren mit

Agentforce Builder fails right after naming the agent? Check your sandbox File Storage

 

The symptom

In a Developer sandbox, nobody could create a new agent in Agentforce Builder, admins included. You type the agent name, click next, and a red banner says the agent couldn't be created and to contact your Salesforce administrator. Nothing else: no error code, no detail.

We lost a few days to it, so here is what we found.

What we ruled out first

  • Permissions and licenses. It failed for every user, including System Administrators with the Agent Platform Builder permission set and license.
  • Org settings. Agent Platform and Einstein generative AI were both enabled.
  • Validation rules and triggers on User. None applied.
  • A CLI clue that pointed the wrong way. We reproduced the failure with sf agent publish authoring-bundle. The debug log showed a 404 from the agent authoring API, followed by a timeout on a sandbox fallback host. It matches an open CLI issue (forcedotcom/cli #3634), and we almost opened a support case over it. In our case it was not the cause.

The clue that mattered

Each failed attempt still created the agent's run-as user ("EinsteinServiceAgent User") and assigned its licenses and permission sets. Setup Audit Trail showed every step succeeding. So the failure happened later, when the agent itself was saved.

Then we checked the org limits:

 

 

sf limits api display -o <sandbox> | grep -i storage

File Storage: 248 MB used of 200 MB (124%).

One presentation file, a little over 240 MB, had been uploaded to the sandbox weeks earlier. Developer sandboxes allow only 200 MB of file storage. Once you're over the limit, the org refuses new files. We confirmed it by inserting a 1 KB ContentVersion, which failed with STORAGE_LIMIT_EXCEEDED. According to Salesforce Help, when data or file storage is over 100% in a sandbox, record creation can fail too, not just file uploads.

The timeline matched: the last successful agent save was before that upload, and every failure came after it.

The fix

  1. Find the largest files: 

     

     

SELECT Title, FileExtension, ContentSize, CreatedDate

FROM ContentVersion WHERE IsLatest = true

ORDER BY ContentSize DESC LIMIT 10

Download what you need to keep, then delete it from the org.

  1. Empty the Org Recycle Bin. Deleted files still count toward storage until the bin is emptied.
  2. Try again. With storage back under the limit, agent creation went through.

Clean up afterwards

Every failed attempt leaves an orphaned, active agent user, plus its permission set and license assignments. We had 12. Find them with:

 

 

SELECT Username, CreatedDate, CreatedBy.Name

FROM User

WHERE Profile.Name = 'Einstein Agent User'

ORDER BY CreatedDate DESC

Make sure no agent references them, then deactivate them.

Takeaways

  • In Agentforce Builder, a generic "couldn't create the agent" banner can hide a storage problem, not just permissions.
  • Developer sandboxes have small storage limits (200 MB data and 200 MB file storage). One large deck or recording is enough to hit the file limit.
  • Check sf limits api display early. It takes seconds and would have saved us days.

A note on certainty: we confirmed the root cause by removing it, since agent creation worked again right after the cleanup. We haven't seen it documented by Salesforce. If you've seen the same thing, please add it below.

 

 

 

#Agentforce  #Sandbox  #Salesforce CLI  #Storage Limit

0/9000

 “Our sandbox was recently refreshed. Production uses SSO. We are unable to log in to the refreshed sandbox using username/password, and the Forgot Password function returns: ‘Your account isn't set up yet. Your Salesforce admin can help with that.’ Please reset the password for the Sandbox System Administrator so we can access the sandbox without SSO.” Even admin's also unable to login. 

 

#Sandbox

3 Antworten
  1. 8. Sept., 16:33

    Hi Lakshman, 

     

    This is a documented Salesforce behavior, not a config mistake on your side. When a sandbox is refreshed, SAML/SSO settings are copied over but automatically disabled, because the Recipient URL changes to match the new sandbox URL, and the sandbox Org ID also changes with every refresh, which invalidates the existing SSO configuration. That's exactly why username/password and Forgot Password both fail right now, if your users were SSO-only, they never had a local Salesforce password set up in the first place, so there's nothing for Forgot Password to reset, hence "Your account isn't set up yet." 

     

    Official reference:

    https://help.salesforce.com/s/articleView?id=000385851&type=1

     

     

    To get back in, try these in order: 

     

    1. Log in directly with local credentials (bypassing SSO): 

       Go to

    https://test.salesforce.com

    (or your Sandbox My Domain URL) 

       Username:

    user@domain.com.sandboxname

     

       Password: whatever password was active in Production at the exact time of the refresh (sandbox refresh carries over the Production password as of that moment) 

     

    2. If another admin already has direct access to the sandbox: 

       Have them go to Setup > Users inside the sandbox, remove the ".invalid" suffix from your email, save, then click Reset Password on your user record. 

     

    3. If every single admin is locked out (sounds like your case): 

       Open a case with Salesforce Support from your Production org. Provide the Sandbox Org ID and explicitly request a password reset email for the affected Sandbox administrator. Support can issue this even though Forgot Password self-service fails. 

     

    Once you regain access as admin: 

    4. Go to Setup > Identity > Single Sign-On Settings (Lightning) or Setup > Security Controls > Single Sign-On Settings (Classic) 

    5. Click Edit, check SAML Enabled, Save 

    6. Update the Recipient URL to match the new sandbox URL, then download the sandbox's SAML metadata and send it to your Identity Provider so they can update their config to the new sandbox URL and Org ID 

     

    Until step 6 is done, SSO simply will not work in this sandbox, that part isn't a bug, it's expected after every refresh.

0/9000

Hi everyone,

I’m facing an issue with Account record visibility in a Salesforce Developer Sandbox and would appreciate some guidance.

  • Account OWD is set to Private.
  • I have refreshed the Developer Sandbox from Production.
  • I manually loaded Account records into the Sandbox.
  • The Account records are owned by me.
  • I and the other users have the Company CEO role.
  • My Account object Read permission is enabled.
  • I can see the Account records in the Sandbox, but the other Company CEO users cannot.
  • In Production, these same users can see Account records owned by me.
  • There are no Account Sharing Rules configured in the Sandbox.

What could be causing the difference in record visibility between Production and the Developer Sandbox? Is there any additional sharing/access setting I should check?

Thanks in advance! 

 

#Salesforce Admin  #Security  #Sandbox  #Salesforce

7 Antworten
0/9000

Resources from the Agentforce Ask Me Anything on Streamline Deployments with DevOps Center 

 

I hope you joined us for the fantastic Agentforce AMA on Wednesday 30 July 2025 featuring @Satya Sekhar Chegondi with product experts @Gilson Canario and @Srikrishna Padmannagari.

 

They loved answering your questions about Streamlining Deployments with DevOps Center. If you missed it, don't worry - we recorded the series and our experts have provided some great resources so you can continue your learning!

#DevOps Center #Devops #SFDC DX #Sandbox #Sandboxes #Metadata #Agentforce #Agent Builder

0/9000

Streamline Deployments with DevOps Center: Agentforce NOW Ask Me Anything July 2025 

 

DevOps Center now integrates with the new DX Inspector, a new management tool within Salesforce sandboxes that enhances metadata tracking and visualization used by Agentforce.  

 

Join developer advocate host

@Satya Sekhar Chegondi and product managers @Gilson Canario and @Srikrishna Padmannagari to learn how to easily make and track changes to metadata while configuring agents in Agent Builder. 

 

Date: Wednesday July 30, 2025

Time: 9am PT

Click here to register. 

Streamline Deployments with DevOps Center: Agentforce NOW Ask Me Anything July 2025 DevOps Center now integrates with the new DX Inspector, a new management tool within Salesforce sandboxes that enhan

 

#DevOps Center #Devops #SFDC DX #Sandbox #Sandboxes #Metadata #Agentforce #Agent Builder

0/9000

Benefits of Using Partial Copy and Full Copy Sandbox..

 

Can we Clone the Developer Instance and Create one Partial Copy Sandbox for Testing(UAT)

 

#SandboxIsHere  #Full Copy Sandbox  #Sandbox

0/9000

Hi community,

Is there a way to create a marketing cloud sandbox to learn trailhead modules?

Thanks

#Marketing Cloud #Trailhead #Trailhead Challenges #Sandbox
3 Kommentare
  1. 29. Sept. 2024, 18:23

    @Dave Lypovskyy you're welcome!

     

    If my previous answer was useful for you, please mark as a Accepted Answer.

     

    I wish you success in your further learning Salesforce.

     

    Sincerely, 

    Mykhailo Vdovychenko 

    Bringing Cloud Excellence with IBVCLOUD OÜ

0/9000

Now Available: Data Cloud in Sandboxes Open Beta

 

New: you can now integrate Data Cloud within sandbox environments for greatly-improved testing and customization. 

 

Check out the new blog post from @Margot Tollefsen and @William Yeh, and learn how to opt-in to the open beta on the Salesforce Developers website.

Now Available: Data Cloud in Sandboxes Open Beta New: you can now integrate Data Cloud within sandbox environments for greatly-improved testing and customization.

#Data Cloud #Sandbox #AI #Generative AI #Beta

0/9000

Hi trailblazers,

We have the Data Cloud (DC) & Sales Cloud in the same instance.

I know that I can use ConnectAPI to get the data from DC. Tried and tested using developer console in the production.

Now, I want to develop custom LWC which required the data from DC. When I try to develop it in a sandbox with the ConnectAPI, it seems that I can not test it with the DC. So I am puzzled over on how to follow the development when it comes to the DC within same instance.

I don't want to go with the Connected App thing because it's the same instance.

 

Even with the flows, I can configure them in production like this:Data cloud ConnectApi for SandboxWhen try to develop in Sandbox, I don't see any value in the data space to select.

Screenshot 2024-02-22 at 16.45.55.png

Is there something needs to be setup in the DataCloud?

 

I have seen your demo on youtube @Phaneendra Arigachetta, it was great. Just tagging you here in case you have any insights already.

#Data Cloud #Sandbox 

3 Antworten
  1. 23. Feb. 2024, 08:21

    @Ishwar Kabra: you can watch this video: https://www.youtube.com/watch?v=3rxtc9puX0E&t=1s, in this tutorial, what i have done is connected DC with another CRM Org. and both of these 2 orgs (DC and CRM) Connected via CRM Connector. it's similar like your sandbox. and in sandbox, you can still leverarge query api's to fetch data from DC org and insert into any one of the custom object. (make sure you need to setup Named Creds in DC org). When it comes to leveraging DC sandboxes: In next 2 releases sf is releasing sandboxes concept: like go to DC Prod org and spun sandbox where Metadata and Configurations Automatically Replicated as part of Sandbox. and one more good news ,they are coming up with Playground data spaces like we can exact copy of default data space and do some changes quickly and retrofit back to default Data space again.

0/9000
2 Kommentare
0/9000