DX_Generate_Temporary_File Transformation
The DX_Generate_Temporary_File transformation generates a path and a file name for a document to store in the Data Integration Hub document store.
Use the transformation to generate a unique file name in a temporary directory within the document store. For example, if you use an Unstructured Data transformation to write data to a temporary file, you can use the DX_Generate_Temporary_File transformation to generate a file name for a file in the document store. You then assign the file name and path to the file.
After you create the file in the temporary directory, you can use it in other transformations. For example, you can use the DX_Add_Document_To_Event transformation to attach the file to an event. PowerCenter copies the file from the temporary directory to the directory that contains all of the documents that it adds to events.
Input/Output Ports
Configure input/output ports for the DX_Generate_Temporary_File transformation on the Ports tab.
The following table describes the DX_Generate_Temporary_File input/output ports:
Port | Type | Description |
---|
DXEventId | string | Required. Identifier of the event to associate with the generated file. |
DXTemporaryFilePath | string | Path and file name of the temporary file. |
DXErrorMessage | string | Error message generated by the transformation. |
DXErrorCode | string | Error code generated by the transformation. If the transformation fails, the value of the DXErrorCode port is greater than zero. |
Data Integration Hub Properties
Configure properties for the DX_Generate_Temporary_File transformation on the DX Properties tab.
The following table describes the Data Integration Hub properties of the DX_Generate_Temporary_File transformation:
Property | Description |
---|
Do not use a temporary folder in the generated file path | Indicates whether to generate the file path within the temporary directory in the Data Integration Hub document store, or to generate the file path directly in the regular documents directory. Select this option to increase performance for documents that PowerCenter passes by reference and eliminate the additional backup that the temporary directory provides. Cleared by default. |
Set the event status to Error if the transformation fails | Indicates whether to set the status of the event to Error when the transformation generates an error. Selected by default. |