Articles in this section
Category / Section

Resolving Embed Code Validation Failed Error in Java application

Published:

When working with the Bold BI embedded dashboard in a Java application, you may encounter an “Embed code validation failed” error. This issue often occurs due to the encoded value appearing in the embed signature parameter value. To resolve this problem, you need to pass the URL value without encoded format.

Solution

If you are using RestTemplate in your application, follow the steps below:

  1. Create a RestTemplate instance:
RestTemplate restTemplate = new RestTemplate();
  1. Create a DefaultUriBuilderFactory instance and set the encoding mode to NONE:
DefaultUriBuilderFactory defaultUriBuilderFactory = new DefaultUriBuilderFactory();
defaultUriBuilderFactory.setEncodingMode(DefaultUriBuilderFactory.EncodingMode.NONE);

This will avoid encoding of query parameters that are already encoded using the GetSignatureUrl method.

  1. Avoid using hard-coded values for the embedQuery in the getDetails method. The embedQuery value should come from the embedQueryString parameter.

By following these steps, you should be able to resolve the “Embed code validation failed” error in Bold BI.

Additional References

Was this article useful?
Like
Dislike
Help us improve this page
Please provide feedback or comments
SM
Written by Soundarya Mani Meharan
Updated:
Comments (0)
Please  to leave a comment
Access denied
Access denied