cancel
Showing results for 
Search instead for 
Did you mean: 

GetImageVariant error

Former Member
0 Kudos

Hi All

Im using the following MDM API function to get the image path from MDM server.


try{
   path=catalogCache.GetImagePath("Images","Small",1012);
}
catch(Exception e){
   LOG.error("Unable to find Small thumbnails " + e.getMessage());
}

But, It throws exception as follows

Unable to find Small thumbnails GetImageVariant error

Can you please help me understnd why the above exception is being thrown.

Is it because of improper Image variant Generation.

How to fix the above bug?

Thanks

Prakash A

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi Walter

Could you please provide me the steps to generate variants for a specific image?

Thanks

Former Member
0 Kudos

Hi Walter

Thanks a lot.

Could you please let me know where can I get javadoc documentation package.

Prakash

Former Member
0 Kudos

Hi R.n

Here is the error that I receive when I try to generate variant.

"Failed to generate variant 'Tiny[English [US]]' for image 'B701VE.jpg': Failed to connect to an Adobe Photoshop Automation Server."

Please advise.

Thanks

Prakash A

Former Member
0 Kudos

Hi Nathan,

1) The error code you are receiving (-5636096) is RC_CM_NORESULTS_FROM_DB - i.e. there is no image with the ID you are trying to retrieve. Note that these error code constants can be found in the file <b>constant-values.html</b> which is part of the javadoc documentation package.

2) In order to generate image variants, you must have Photoshop installed on the machine where Data Manager is running.

Walter

Former Member
0 Kudos

Hi Walter

Thanks for you reply.

I tried the STEP 1 and it was not successfull.

Here is the error message & code that I have received..

GetImageVariant error -5636096

Please advise on what is the root cause for this error and how this can be resolved.

Thanks

Prakash A

Former Member
0 Kudos

hay prakash,

it looks like image id which you mention is not present.

Try to generate new variant for same image and use that image id....this might help you to investigate issue further...

-R.n

Former Member
0 Kudos

Hi Nathan,

Try the following:

1) That you can actually get images - try to get the thumbnail:

path = catalogCache.GetImagePath("Images", "Thumbnail", 1012);

This should work (unless image id 1012 doesn't exist, or for some reason you don't generate thumbnails).

If Step 1 is successful, continue to Step 2:

2) In the MDM Data Manager, right-click on the image you are trying to retrieve, and see if it shows the "Small" option (the variant you are trying to retrieve via the API). If so, then you <i>should</i> be able to retrieve it via the API. If not, then in your <b>catch</b> block, try casting <b>e</b> to <b>StringException</b> and print the value of <b>e.GetErrorCode()</b> which might help further analyse the problem.

Regards,

Walter