Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Putting tSalesforceInput out put data row by row into multiple excelfiles

Hi,

 

I want to put each row which i got from tsalesforceInput after querying .. into a separate excel sheet..

Please suggest how to achieve this...PFA..

Labels (3)
1 Solution

Accepted Solutions
TRF
Champion II
Champion II

As soon as an input field is you cannot use the corresponding globalMap.get.
Try with globalMap.getOrDefault instead.

View solution in original post

15 Replies
manodwhb
Champion II
Champion II

@uganesh,i suggest you to use tMap between tsaleforceinput and tFileOutputExcle and generate the filenames in tMap using as a filed and then in the tFileOutputExcel using output stream option from the basic settings and specify the filed name based on that filed files will be generated.

TRF
Champion II
Champion II

As the whole data flow arriving into the tFileOutputExcel component will go to the same sheet, you need to use both tFlowToIterate and tIterateToFlow components between tSalesforceInput and tFileOutputExcel.

This suppose that the sheetname can be directly derived from the schema fields.

Else you will need a tMap or tJavaXxxx component to construct the desired sheetname. 

Anonymous
Not applicable
Author

Hi,

I have tried that way..but getting below error.

 

 

Error :

Error in the component's properties:Type mismatch: cannot convert from Object to String
Type mismatch: cannot convert from Object to String
Type mismatch: cannot convert from Object to Date
Type mismatch: cannot convert from Object to String
Type mismatch: cannot convert from Object to String
Type mismatch: cannot convert from Object to String
Type mismatch: cannot convert from Object to String
Type mismatch: cannot convert from Object to String
Type mismatch: cannot convert from Object to String
Type mismatch: cannot convert from Object to String
Type mismatch: cannot convert from Object to String
Type mismatch: cannot convert from Object to boolean
Type mismatch: cannot convert from Object to boolean
Type mismatch: cannot convert from Object to boolean
Type mismatch: cannot convert from Object to boolean
Type mismatch: cannot convert from Object to boolean
Type mismatch: cannot convert from Object to String
Type mismatch: cannot convert from Object to boolean
Type mismatch: cannot convert from Object to boolean
Type mismatch: cannot convert from Object to boolean
Type mismatch: cannot convert from Object to boolean
Type mismatch: cannot convert from Object to boolean
Type mismatch: cannot convert from Object to boolean
Type mismatch: cannot convert from Object to boolean
Type mismatch: cannot convert from Object to boolean
Type mismatch: cannot convert from Object to boolean
Type mismatch: cannot convert from Object to boolean
Type mismatch: cannot convert from Object to boolean
Type mismatch: cannot convert from Object to boolean
Type mismatch: cannot convert from Object to boolean
Type mismatch: cannot convert from Object to boolean
Type mismatch: cannot convert from Object to String
Type mismatch: cannot convert from Object to String
Type mismatch: cannot convert from Object to String
Type mismatch: cannot convert from Object to String
Type mismatch: cannot convert from Object to String
Type mismatch: cannot convert from Object to String
Type mismatch: cannot convert from Object to String
Type mismatch: cannot convert from Object to String
Type mismatch: cannot convert from Object to boolean
Type mismatch: cannot convert from Object to String
Type mismatch: cannot convert from Object to String
Type mismatch: cannot convert from Object to String
Type mismatch: cannot convert from Object to boolean
Type mismatch: cannot convert from Object to boolean
Type mismatch: cannot convert from Object to boolean
Type mismatch: cannot convert from Object to String

 

 


tal8.JPG
tal9.JPG
tal10.JPG
Anonymous
Not applicable
Author

I have tried that way but getting below error....PFA

 

Error in the component's properties:Type mismatch: cannot convert from Object to String
Type mismatch: cannot convert from Object to String
Type mismatch: cannot convert from Object to Date
Type mismatch: cannot convert from Object to String
Type mismatch: cannot convert from Object to String
Type mismatch: cannot convert from Object to String
Type mismatch: cannot convert from Object to String
Type mismatch: cannot convert from Object to String
Type mismatch: cannot convert from Object to String
Type mismatch: cannot convert from Object to String
Type mismatch: cannot convert from Object to String
Type mismatch: cannot convert from Object to boolean
Type mismatch: cannot convert from Object to boolean
Type mismatch: cannot convert from Object to boolean
Type mismatch: cannot convert from Object to boolean
Type mismatch: cannot convert from Object to boolean
Type mismatch: cannot convert from Object to String
Type mismatch: cannot convert from Object to boolean
Type mismatch: cannot convert from Object to boolean
Type mismatch: cannot convert from Object to boolean
Type mismatch: cannot convert from Object to boolean
Type mismatch: cannot convert from Object to boolean
Type mismatch: cannot convert from Object to boolean
Type mismatch: cannot convert from Object to boolean
Type mismatch: cannot convert from Object to boolean
Type mismatch: cannot convert from Object to boolean
Type mismatch: cannot convert from Object to boolean
Type mismatch: cannot convert from Object to boolean
Type mismatch: cannot convert from Object to boolean
Type mismatch: cannot convert from Object to boolean
Type mismatch: cannot convert from Object to boolean
Type mismatch: cannot convert from Object to String
Type mismatch: cannot convert from Object to String
Type mismatch: cannot convert from Object to String
Type mismatch: cannot convert from Object to String
Type mismatch: cannot convert from Object to String
Type mismatch: cannot convert from Object to String
Type mismatch: cannot convert from Object to String
Type mismatch: cannot convert from Object to String
Type mismatch: cannot convert from Object to boolean
Type mismatch: cannot convert from Object to String
Type mismatch: cannot convert from Object to String
Type mismatch: cannot convert from Object to String
Type mismatch: cannot convert from Object to boolean
Type mismatch: cannot convert from Object to boolean
Type mismatch: cannot convert from Object to boolean
Type mismatch: cannot convert from Object to String


tal8.JPG
tal9.JPG
tal10.JPG
Anonymous
Not applicable
Author

Can you explain ..how to do that...since i am new to talend..

Anonymous
Not applicable
Author

Can you expain how to do this
TRF
Champion II
Champion II

Here is how ot should look like:

0683p000009M0Hj.png

1rst tFixedFlowInput replace tSalesforceInput component for the example. The associated schema is composed of 2 fields (name and sheetname).

tFlowToIterate generates a global variable for every incoming field and mark the beginning of an iteration for every row. The configuration of this component is the default one.

2nd tFixedFlowInput generates a flow based on the global variable "row113.name" genrated by the tFlowToIterate component.

Here is how it is configured:

0683p000009M0Ho.png

The field "name" is populated by the global variable "row113.name".

tFileOutputExcel generates the desired Excel file using the global variable "row113.sheetname" as the target sheetname:

 

0683p000009M0CG.png

Be carefull with the ticked options.

That's all.

TRF
Champion II
Champion II

@uganesh, did this help?

If so, thank's to mark your case as solved (Kudos also acceptedas a bonus).

Anonymous
Not applicable
Author

i have tried as u said..but still getting below error....PFA

 

Error in the component's properties0683p000009MA5A.pngrg.talend.components cannot be resolved to a type
org.talend.components cannot be resolved to a type
org.talend.components cannot be resolved to a type
org.talend.components cannot be resolved to a type
org.talend.components.salesforce.tsalesforceinput.TSalesforceInputProperties cannot be resolved to a type
org.talend.components.salesforce.SalesforceConnectionProperties cannot be resolved to a variable
org.talend.components.salesforce.SalesforceConnectionProperties cannot be resolved to a variable
org.apache.avro cannot be resolved to a type
org.talend.components.api.properties cannot be resolved to a variable
org.talend.daikon cannot be resolved to a type
org.talend.daikon cannot be resolved to a type
org.talend.components.api.properties cannot be resolved to a variable
org.talend.daikon cannot be resolved to a type
org.talend.daikon cannot be resolved to a type
org.talend.components cannot be resolved to a type
org.talend.components cannot be resolved to a type
org.talend.components cannot be resolved to a type
org.talend.components.api.component.ConnectorTopology cannot be resolved to a type
org.talend.daikon cannot be resolved to a type


tal11.JPG
tal12.JPG
tal13.JPG
tal14.JPG
tal15.JPG