Forum Discussion

maheswara's avatar
maheswara
New Contributor II
2 years ago
Solved

Unable to load account definition

Hi Team, 

I developing custom snap. I am using account type is custom. so now i am written my logic and deployed to snapLogic now i am getting error like below.

"Unable to load account definition, Reason: Account named "snap" does not exist, Resolution: Update the account for this snap".

Please help in this if anyone knows the solution.

 

8 Replies

  • svatada's avatar
    svatada
    Former Employee

    maheswara  Please check if you have defined the absolute path of the account classes in pom.xml.

    Additionally, in the Snap class, check if the account has been added using the @Accounts annotation, as shown below.

    • maheswara's avatar
      maheswara
      New Contributor II

      Hi svatada

      Yes I am doing same thing but facing issue. and one more thing is even if I modified the code and deploying new code. The code is change but the output is showing only previous output. I am not able to find the issue. is it issue with snaplex? Because different snaplexes showing different error based on previous output errors.

       

      Could you please help me on this ? 

      • ssapa's avatar
        ssapa
        Employee

        maheswara Regarding this issue "one more thing is even if I modified the code and deploying new code. The code is change but the output is showing only previous output", while doing  mvn clean install, add an extra parameter called -Dsl_build=<UniqueName>. You should give different build name every time you build.

        mvn clean install -Dsl_build=<UniqueName>

  • svatada's avatar
    svatada
    Former Employee

    Are you able to validate account?

    Are you using expressions in snap and passing account name from pipeline parameters?

    • maheswara's avatar
      maheswara
      New Contributor II

      Thanks.now it's working fine.Related to account issue.

      • svatada's avatar
        svatada
        Former Employee

        maheswara Can you post the problem and how you resolved it here? This will be a good reference and helpful for anyone who encounters a similar issue.

        Thanks.