FAQ

There are issues that come up on a regular basis when using Data Hub. Many of the answers to those questions have been recorded and are available to help you here.

Installation and Startup

Data

Data Load

Publication

Metadata

Operations

Communications

Recovery

Other

Installation and Startup

What are the tasks I must complete before beginning installation?

You must implement the – Pre-Installation Planning Guide –. Data Hub deployments that do not incorporate the Guide's recommendations are considered to be misconfigured. Examples of things to consider are:
  • You must review the source data. The source data has to be prepared for the Data Hub environment. If your source data is IDocs, data preparation is especially important.
  • You must consider database grooming as Data Hub performs progressively worse as data elements from previously processed items accumulate.
  • You must gain an understanding of Data Hub queuing procedures.

I set up Data Hub, and everything appears to have started properly. I used a REST call to check the version and got the proper response. However, when I attempted to load data using REST, I got a 401 Unauthorized message. What's wrong?

With the exception of status and version, all Data Hub REST endpoints are secure. When you checked the version, you got a good response because the version endpoint is not secured. When you attempted to load data, you were using a secured endpoint and got an error message saying you were unauthorized. You can set up access by reviewing Application Security.

What do I should do to ensure my Data Hub installation is ready for production?

Complete the following steps:
  1. Review, consider, and implement the – Pre-Installation Planning Guide –.
  2. Carefully considering the amount and complexity of data to be processed by Data Hub, size your hardware and network appropriately.
  3. Install Data Hub.
  4. Activate the Data Hub cleanup extension.
  5. Review the Data Hub performance configuration parameters (Performance Configuration Parameters). Experiment with the parameters you think are most applicable to your environment.
  6. Test your installation under varying loads at different times of the day. During this effort, tune your database.

Once you tune the installation, your Data Hub installation is production ready. It is wise, however, to run several production dry runs as a sanity check.

Should I install the latest patch?

Yes. Always install the latest patch. If you are using a hybrid adapter, always check patch releases for updates.

I want to update my Data Hub but don't want to update my SAP Commerce Cloud. Is there a way I can publish from a newer Data Hub to an older SAP Commerce Cloud?

Yes there is. Data Hub offers special hybrid adapters in verskon 6.5. The hybrid adapters provide connectivity from newer Data Hub versions to older SAP Commerce Cloud versions. You can find information about the hybrid adapters at version 6.5 > Master Your Data Hub Project > Input and Output Adapters > Hybrid Adapters.

Data

Can product variants be imported using the Data Hub?

Two dimensional products can be imported. If you want to import products with more than two dimensions, create custom grouping and custom composition handlers. You would also have to redefine the extension XML file and the maven project characteristics.

How does the Data Hub help with data validation?

The Data Hub has validation routines built into it. These routines are described in the topic Validation and Rules for the Creation of Metadata and Feeds.

How large a data set can I load using the Data Hub?

There is no size limit.

The Data Hub seems to have a problem with special characters (for example ä,ö,ü). Within SAP Integration, we have classification attributes that consist of these characters. The canonical items do have '?' instead of the special characters. With debugging, we found that the special characters arrive correctly within the Data Hub IDoc input channel. Does the Data Hub fully support UTF-8 characters? Is the behvior a bug?

The Data Hub fully supports UTF-8. It also internally generates XML files and saves them as BLOB data within the database. Therefore, set the start parameter -Dfile.encoding=UTF-8 for some environments. Otherwise, the previously mentioned issue arises. You might also try starting tomcat with the java system property - Dfile.encoding=UTF-8.

Why does the IDoc XML payload get logged to my Tomcat catalina.out log file? The logging can cause the logs to grow very large during some IDoc data loading scenarios.

By default, Data Hub logs REST calls as well as their payload. To eliminate IDoc XML payload logging, modify the Data Hub logback.xml file as follows:

<logger name="com.hybris.datahub.sapidocintegration.spring.HttpInboundService" level="WARN" />

Data Load

What is the process for importing data into the Data Hub?

You use the Spring Framework to design your own data loading extension. See Load and Load.

Publication

How do I output data from one source to multiple targets systems? Here is the scenario: There is one Data Hub with one canonical model for customer and a target system for each of the SAP Commerce Cloud systems. System “A” should only receive customer data for sales area “A”. System “B” should only receive customer data for sales area “B”. System “C” and “D” should receive all customer data independent of the sales area. Can the data be filtered?

Yes. You can develop custom filters using a publication grouping handler. See Publication Grouping Handlers.

If the answer to the previous question is yes, is there a mechanism in Data Hub to know the state of publishing per each target system? Is there a resend functionality for each target system?

Yes, knowing the state is a standard feature. There are REST calls that help you determine status. In addition, Data Hub triggers several events during publication, which can be used to track progress. (See Events). There is an automatic retry, and it occurs with the very next publication if you are using standard publication. During dynamic publication, at the end of the publication cycle, Data Hub automatically does a sweep of canonical items that failed to publish and attempts to publish them.

Where can I find information about why a Data Hub publication failed?

When data fails to publish from the Data Hub, the errors appear in the log file. For further information about why a particular item did not publish to the Target System, compare the related error messages in the log file with Publication Error Messages. You can see how to establish logging in Logging.

If a canonical item fails to publish to a target system, is there a way to prevent the canonical item from indefinitely remaining eligible for republication?

Yes, it is possible to mark a canonical item as DELETED. The canonical item initially remains eligible for publication to SAP Commerce Cloud. When published to SAP Commerce Cloud, the publication status for this canonical item is marked SUCCESS if the item is either deleted or does not exist in the SAP Commerce Cloud. At this point, the canonical item is no longer eligible for publication. See the Deleting a Canonical Item section of Changing a Canonical Item During Composition.

How can I discover failed publications and act on them?

When publication actions fail, those failed publication items are picked up on subsequent publications automatically. However, you can also manually intervene by triggering a publication through a REST call (see Manual Retry Publication).

There is a problem where we created a very large number of canonical items frozen with an IN_PROGRESS status during publication. How do we fix this problem?

See Changing a Canonical Item During Composition.

Metadata

How do I load Data Hub- target metadata, and what is the format?

Target metadata is loaded using the extension XML file. Target Metadata and Mapping Between Target and Canonical Models provide a detailed explanation of the process.

Operations

I have been watching Data Hub, and I can't tell if anything is happening. What should I do?

Are you using the recommended logging configuration as provided in the logback.xml configuration file?. For more information, see Logging. With logging active, you can watch Tomcat's log on screen and see exactly what Data Hub is doing.

How important is the cleanup extension?

Data Hub transactions are fully auditable. Every change to the data is tracked. A large amount of data accumulates over time. It has been preserved just to maintain the audit trail. The audit data can eventually affect the performance of the database. Enable and properly configure the cleanup extension to mitigate this situation. For more information, please see Activating Data Hub Database Cleanup.

I am having heap space issues. How do I address them?

As the size of your dataset increases, increase the size of your JVM heap. See the Hardware Guidelines section of General Correlations Between Hardware Configuration and Job Size.

Communications

Is there a limit on the number of records that can be pushed at the same time? Do all records get processed sequentially, or can there be multiple threads processing the load at the same time?

Different requests are processed in different threads as in a standard web server. The further composition and publication is handled by a single thread in Data Hub. Currently, there is no way to throttle the inbound requests, as a result, there is the potential to overload the system during load. Validate the configuration to ensure that the load requests do not overload the server.

Data Hub and SAP Commerce Cloud are running on different VMs. If I execute the export to SAP Commerce Cloud through https://localhost:8443/datahub-webapp-0.1.6/job-executions/1/exports on VM1, I receive an exception on VM2. See Code Block.

When the Data Hub receives a request to publish, it sends the host name from the request to the Data Hub Adapter. The hostname then becomes the host the Data Hub Adapter calls back to. If you make the request to localhost/datahub, the Data Hub Adapter calls back to localhost to get the rest of the data it needs. However, localhost is the wrong location. To work around the situation, use the IP address or hostname instead of localhost.

Failed to communicate to https://localhost:8443/datahub-webapp-0.1.6/batches/2/B2BUnit.txt?targetName=HybrisB2BCoreInstallation&locale=&fields=uid

Recovery

Are there Data Hub specific tools for disaster recovery?

Yes. In the 6.1 version, Data Hub adds process resiliency. (See Aspects of Data Hub Server Resiliency). A failed Composition or Publication process, restarts automatically at their point of termination. There is no loss of data.

If you are performing a Load process, Data Hub sets the Data Loading action status to FAILURE and deletes all raw items associated with that action Restart the Load process from the beginning.

Does Data Hub provide any recovering from target disconnects?

If the target system becomes unreachable, Data Hub detects the disconnect and begins the process of automatically trying to reconnect. You can configure the maximum number of reconnection attempts and the maximum time to wait before concluding the target system is unavailable. For more information, see Checking Target System Availability.

Are there similar automatic reconnection attempts for the Data Hub Adapter?

Yes, but they are not initiated by Data Hub. Instead the Adapter initiates the reconnection attempts and continues to do so at configurable intervals for a maximum number of retry attempts. See Data Hub Adapter Connection Retry.

Other

How is Data Hub positioned in regards to SAP PI?

The Data Hub is complementary to SAP PO/PI. PO/PI provides application and process integration (orchestration) for the SAP application domain, while the Data Hub provides data integration for the Data Hub domain. Some customers use PO to deliver IDocs from ERP using a pre-existing setup to produce the IDocs as input to the Data Hub. Longer term, SAP Commerce Cloud is going to produce an adapter to PO/PI similar to what is provided for other integration points such as ERP.

Schemaless Attributes

What if I Get an Error When Loading, Composing, or Publishing While Persisting Schemaless Attributes?

You use the kryo.serializer.custom.registered.classes property to register a class or classes that need to be supported by Kryo serialization.

For example, using ConcurrentHashMap as an unregistered class, the exception in the log would be the following:
To fix this issue, add the ConcurrentHashMap class in the value list of the kryo.serializer.custom.registered.classes property in the local.properties file. For example,

Once the you've added the property to the local.properties file, restart the server. For more information on the kryo.serializer.custom.registered.classes property, see Configuration Properties.