HELP "Data source cannot be created : t2cGetCharSet"
HELP "Data source cannot be created : t2cGetCharSet" in OracleAS MapViewer Version: Ver10131_B061023
HELP "Data source cannot be created : [MapperConfig] no se puede agregar el origen de datos de mapa."
Similar Messages
-
Data source cannot be created : MAPVIEWER-00011: Error creating a map data
Hi everyone,
i am getting an error meaasge while creating datasource
" Data source cannot be created : MAPVIEWER-00011: Error creating a map data source."
pls helpYou should assign only one value to jdbc_sid. Try with this
<map_data_source name="mvdemo"
jdbc_host="localhost"
jdbc_sid="orcl"
jdbc_port="1521"
jdbc_user="mvdemo"
jdbc_password="!mvdemo"
jdbc_mode="thin"
number_of_mappers="3"
allow_jdbc_theme_based_foi="false"
/>
Make sure that oracle sid is 'ORCL'
Sujnan -
Error on clicking "Report Data Source" in library created using power pivot template
Hi,
On clicking on "Report Data Source" in library created using power pivot template i am getting below exception. Can some one help me in understanding the root cause / fix it.
Error being shown: Microsoft.ReportingServices.SharePoint.SharedService.Client.RecoverableCommunicationException: The content type text/html; charset=utf-8 of the response message does not match the content type of the binding (application/soap+msbin1).
If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 1024 bytes of the response were: '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>IIS 8.0 Detailed Error - 500.19 - Internal Server Error</title> <style type="text/css"> <!-- body{margin:0;font-size:.7em;font-family:Verdana,Arial,Helvetica,sans-serif;}
code{margin:0;color:#006600;font-size:1.1em;font-weight:bold;} .config_source code{font-size:.8em;color:#000000;} pre{margin:0;font-size:1.4em;word-wrap:break-word;} ul,ol{margin:10px 0 10px 5px;} ul.first,ol.first{margin-top:5px;}
fieldset{padding:0 15px 10px 15px;word-break:break-all;} .summary-container fieldset{padding-bottom:5px;margin-top:4px;} legend.no-expand-all{padding:2px 15px 4px 10px;margin:0 0 0 -12px;} legend{color:#333333;;margin:4px 0 8px -12px;_margin-top:0px;
font-weight:bold;font-size:1em;} a:link,a:visited{color:#007EFF;font-weight:bold;} a:hover{text-decoration:none;} h1{font-size:2.4em;margin:0;color:#FFF;} h2{font-size:1.7em;margin:0'. ---> System.ServiceModel.ProtocolException:
The content type text/html; charset=utf-8 of the response message does not match the content type of the binding (application/soap+msbin1). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 1024
bytes of the response were: '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>IIS
8.0 Detailed Error - 500.19 - Internal Server Error</title> <style type="text/css"> <!-- body{margin:0;font-size:.7em;font-family:Verdana,Arial,Helvetica,sans-serif;} code{margin:0;color:#006600;font-size:1.1em;font-weight:bold;}
.config_source code{font-size:.8em;color:#000000;} pre{margin:0;font-size:1.4em;word-wrap:break-word;} ul,ol{margin:10px 0 10px 5px;} ul.first,ol.first{margin-top:5px;} fieldset{padding:0 15px 10px 15px;word-break:break-all;}
.summary-container fieldset{padding-bottom:5px;margin-top:4px;} legend.no-expand-all{padding:2px 15px 4px 10px;margin:0 0 0 -12px;} legend{color:#333333;;margin:4px 0 8px -12px;_margin-top:0px; font-weight:bold;font-size:1em;} a:link,a:visited{color:#007EFF;font-weight:bold;}
a:hover{text-decoration:none;} h1{font-size:2.4em;margin:0;color:#FFF;} h2{font-size:1.7em;margin:0'. ---> System.Net.WebException: The remote server returned an error: (500) Internal Server Error.
at System.Net.HttpWebRequest.GetResponse()
at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout) -
-- End of inner exception stack trace --- Server stack trace:
at System.ServiceModel.Channels.HttpChannelUtilities.ValidateRequestReplyResponse(HttpWebRequest request, HttpWebResponse response, HttpChannelFactory`1 factory, WebException responseException, ChannelBinding channelBinding)
at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)
at System.ServiceModel.Channels.SecurityChannelFactory`1.SecurityRequestChannel.Request(Message message, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message) Exception rethrown
at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at Microsoft.ReportingServices.ServiceContract.IReportServiceManagement.get_IsWebServiceEnabled()
at Microsoft.ReportingServices.SharePoint.SharedService.Client.ReportingWebServiceApplicationProxy.<>c__DisplayClass8`1.<ExecuteOnApplication>b__6(IReportServiceManagement proxy, Int32 dummy)
at Microsoft.ReportingServices.SharePoint.SharedService.Client.ReportingWebServiceApplicationProxy.ExecuteOnChannel[T](String siteUrl, String xmlNamespace, Action`2 method, IChannel channel, Int32 maxFaultSize)
at Microsoft.ReportingServices.SharePoint.SharedService.Client.ReportingWebServiceApplicationProxy.HandleExecuteOnChannel[T](String siteUrl, String xmlNamespace, Action`2 method, SPServiceLoadBalancerContext loadBalancerContext) -
-- End of inner exception stack trace ---
at Microsoft.ReportingServices.SharePoint.SharedService.Client.ReportingWebServiceApplicationProxy.HandleExecuteOnChannel[T](String siteUrl, String xmlNamespace, Action`2 method, SPServiceLoadBalancerContext loadBalancerContext)
at Microsoft.ReportingServices.SharePoint.SharedService.Client.ReportingWebServiceApplicationProxy.ExecuteOnApplication[T](String operationName, String siteUrl, String xmlNamespace, Action`2 method)
at Microsoft.ReportingServices.SharePoint.SharedService.Client.ReportingWebServiceApplicationProxy.Invoke[T](SPServiceContext serviceContext, String operationName, String siteUrl, String xmlNamespace, Guid serviceInstanceId, Action`2 method)
at Microsoft.ReportingServices.SharePoint.SharedService.Client.ReportingWebServiceClient.Execute[TResult](String methodName, Func`2 action)
at Microsoft.ReportingServices.SharePoint.UI.BaseRSLayoutPage.ValidateReportServerConnection(SrvProxy rsProxy)
Followed steps from below link :
http://www.mssqltips.com/sqlservertip/3004/getting-started-with-power-view-reports-with-sharepoint-excel-and-sql-server/
Thanks,
VenugopalHi Venugopal,
Please refer to the blogs below and see if it works for your case:
http://sharepointerthilosh.blogspot.com/2013/10/sharepoint-2013-reports-unexpected.html
http://badalratra.wordpress.com/2014/03/13/error-the-content-type-texthtml/
To create a Power View report, start Power View from a
data model file in SharePoint Server 2010 or 2013. Models, or connections to models, can be in a SharePoint Server document library or in a
Power Pivot Gallery, a special purpose SharePoint Server document library that provides rich preview and document management for published Microsoft Excel workbooks that contain data models.
Please refer to the links below to get report in Power View in SharePoint server:
http://office.microsoft.com/en-in/excel-help/power-view-in-sharepoint-server-create-save-and-print-reports-HA102834736.aspx
http://office.microsoft.com/en-in/excel-help/create-a-connection-to-a-data-model-for-power-view-HA102835737.aspx
Regards,
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected] .
Rebecca Tu
TechNet Community Support -
MS Excel as data source - Cannot create chart views
Hi,
I created a model with sql server and excel as the data sources. Most of the numerical data is coming from excel.
In Answers, I created a table view and it showed me all the data (Eg months, budget amount, plan amount, actuals amount ). But when I tried to create a chart view, it is giving me an error like it requires atleast one measure to create or draw a chart. I am taking Month on x -axis ad all the other columns like budget, plan , actual on y axis.
Not sure y its behaving like this
Did anyone encoured similar issue?
Please help...
Thanks
RadhaEvents can be used in CE to trigger one report after another.
In CMC, define a new event, Schedule type, based on success. Then schedule your first report, setting Events to Trigger Upon Completion to include this new event. Sechedule your second report to run at the same time, except select the new event in the Events to Wait For section. The second report will wait until the first report completes successfully before starting to execute.
Another possible way is to use Object Packages. However, if such a package is run on a report server that allows multiple reports to run simultaneously, I think the multiple reports in the package will run at the same time. (This would have to be verified, as I am not positive.) But if the report server that the object package is scheduled to run under was single threaded, they would probably execute in order.
HTH,
Carl -
Z data source issue for creating packets
Hi I have created a Z data source (function module) .
My issue is I am not able to create data record packets all the data is coming in one packet only.
The is code is as show below is some one can please assist me how can I change the code so that is can create multiple packets for the option given in Tcode RSA3.
FUNCTION ZBW_MATERIAL_GROUP_HIE.
""Local Interface:
*" IMPORTING
*" VALUE(I_REQUNR) TYPE SRSC_S_IF_SIMPLE-REQUNR
*" VALUE(I_DSOURCE) TYPE SRSC_S_IF_SIMPLE-DSOURCE OPTIONAL
*" VALUE(I_MAXSIZE) TYPE SRSC_S_IF_SIMPLE-MAXSIZE OPTIONAL
*" VALUE(I_INITFLAG) TYPE SRSC_S_IF_SIMPLE-INITFLAG OPTIONAL
*" VALUE(I_READ_ONLY) TYPE SRSC_S_IF_SIMPLE-READONLY OPTIONAL
*" VALUE(I_REMOTE_CALL) TYPE SBIWA_FLAG DEFAULT SBIWA_C_FLAG_OFF
*" TABLES
*" I_T_SELECT TYPE SRSC_S_IF_SIMPLE-T_SELECT OPTIONAL
*" I_T_FIELDS TYPE SRSC_S_IF_SIMPLE-T_FIELDS OPTIONAL
*" E_T_DATA STRUCTURE ZBW_MAT_GRP_HIER OPTIONAL
*" EXCEPTIONS
*" NO_MORE_DATA
*" ERROR_PASSED_TO_MESS_HANDLER
TABLES : /BI0/HMATL_GROUP.
DATA : BEGIN OF t_hmat OCCURS 0,
hieid LIKE /BI0/HMATL_GROUP-hieid,
objvers LIKE /BI0/HMATL_GROUP-objvers,
iobjnm LIKE /BI0/HMATL_GROUP-iobjnm,
nodeid LIKE /BI0/HMATL_GROUP-nodeid,
nodename LIKE /BI0/HMATL_GROUP-nodename,
tlevel LIKE /BI0/HMATL_GROUP-tlevel,
parentid LIKE /BI0/HMATL_GROUP-parentid,
END OF t_hmat.
DATA : BEGIN OF t_flathier,
hieid LIKE /BI0/HMATL_GROUP-hieid,
lv2_id LIKE /BI0/HMATL_GROUP-nodeid,
lv2_name LIKE /BI0/HMATL_GROUP-nodename,
lv3_id LIKE /BI0/HMATL_GROUP-nodeid,
lv3_name LIKE /BI0/HMATL_GROUP-nodename,
lv4_id LIKE /BI0/HMATL_GROUP-nodeid,
lv4_name LIKE /BI0/HMATL_GROUP-nodename,
lv5_id LIKE /BI0/HMATL_GROUP-nodeid,
lv5_name LIKE /BI0/HMATL_GROUP-nodename,
lv6_id LIKE /BI0/HMATL_GROUP-nodeid,
lv6_name LIKE /BI0/HMATL_GROUP-nodename,
lv7_id LIKE /BI0/HMATL_GROUP-nodeid,
lv7_name LIKE /BI0/HMATL_GROUP-nodename,
lv8_id LIKE /BI0/HMATL_GROUP-nodeid,
lv8_name LIKE /BI0/HMATL_GROUP-nodename,
lv9_id LIKE /BI0/HMATL_GROUP-nodeid,
lv9_name LIKE /BI0/HMATL_GROUP-nodename,
lv10_id LIKE /BI0/HMATL_GROUP-nodeid,
lv10_name LIKE /BI0/HMATL_GROUP-nodename,
lv11_id LIKE /BI0/HMATL_GROUP-nodeid,
lv11_name LIKE /BI0/HMATL_GROUP-nodename,
material LIKE /BI0/HMATL_GROUP-nodename,
END OF t_flathier.
FIELD-SYMBOLS: <f> LIKE LINE OF t_hmat,
<Level> TYPE ANY.
data : count(2) type c,
lv_level(20) type c.
DATA : lv_count TYPE n.
DATA : lv_id LIKE /BI0/HMATL_GROUP-nodeid,
lv_hieid LIKE /BI0/HMATL_GROUP-hieid.
Auxiliary Selection criteria structure
DATA: l_s_select TYPE srsc_s_select.
Maximum number of lines for DB table
STATICS: s_s_if TYPE srsc_s_if_simple,
counter
s_counter_datapakid LIKE sy-tabix,
cursor
s_cursor TYPE cursor.
Select ranges
RANGES: l_r_nodename FOR /BI0/HMATL_GROUP-nodename,
l_r_hieid FOR /BI0/HMATL_GROUP-hieid.
Initialization mode (first call by SAPI) or data transfer mode
(following calls) ?
IF i_initflag = sbiwa_c_flag_on.
Initialization: check input parameters
buffer input parameters
prepare data selection
Check DataSource validity
CASE i_dsource.
WHEN 'ZMATERIAL_GROUP_HIE'.
WHEN OTHERS.
IF 1 = 2. MESSAGE e009(r3). ENDIF.
this is a typical log call. Please write every error message like this
log_write 'E' "message type
'R3' "message class
'009' "message number
i_dsource "message variable 1
' '. "message variable 2
RAISE error_passed_to_mess_handler.
ENDCASE.
APPEND LINES OF i_t_select TO s_s_if-t_select.
Fill parameter buffer for data extraction calls
s_s_if-requnr = i_requnr.
s_s_if-dsource = i_dsource.
s_s_if-maxsize = i_maxsize.
Fill field list table for an optimized select statement
(in case that there is no 1:1 relation between InfoSource fields
and database table fields this may be far from beeing trivial)
APPEND LINES OF i_t_fields TO s_s_if-t_fields.
ELSE. "Initialization mode or data extraction ?
Data transfer: First Call OPEN CURSOR + FETCH
Following Calls FETCH only
First data package -> OPEN CURSOR
IF s_counter_datapakid = 0.
Fill range tables BW will only pass down simple selection criteria
of the type SIGN = 'I' and OPTION = 'EQ' or OPTION = 'BT'.
LOOP AT s_s_if-t_select INTO l_s_select WHERE fieldnm = '0MATERIAL'.
MOVE-CORRESPONDING l_s_select TO l_r_nodename.
APPEND l_r_nodename.
ENDLOOP.
LOOP AT s_s_if-t_select INTO l_s_select WHERE fieldnm = 'HIEID'.
MOVE-CORRESPONDING l_s_select TO l_r_hieid.
APPEND l_r_hieid.
ENDLOOP.
Get the data from Hierarchy table
SELECT * FROM /BI0/HMATL_GROUP INTO CORRESPONDING FIELDS OF
TABLE t_hmat
WHERE hieid IN l_r_hieid
AND objvers = 'A' .
ENDIF.
loop through all the 0MATERIAL entries to get all the hirarchy levels.
Start of change.
LOOP AT t_hmat ASSIGNING <f>
WHERE iobjnm = '0MATL_GROUP'
AND nodename IN l_r_nodename.
LOOP AT t_hmat ASSIGNING <f>
WHERE nodename IN l_r_nodename.
End of change
lv_count = <f>-tlevel.
"refresh t_flathier.
CLEAR: t_flathier. ", lv_level, count.
MOVE :
<f>-hieid TO lv_hieid ,
<f>-nodename TO t_flathier-material,
<f>-parentid TO lv_id.
if <f>-iobjnm <> '0MATL_GROUP' .
move <f>-nodename+3 to t_flathier-material .
else.
move <f>-nodename to t_flathier-material .
endif.
Added for Last level.
if lv_count = '1' .
*t_flathier-lv1_name = t_flathier-material .
elseif lv_count = '2' .
t_flathier-lv2_name = t_flathier-material .
elseif lv_count = '3' .
t_flathier-lv3_name = t_flathier-material .
elseif lv_count = '4' .
t_flathier-lv4_name = t_flathier-material .
elseif lv_count = '5' .
t_flathier-lv5_name = t_flathier-material .
elseif lv_count = '6' .
t_flathier-lv6_name = t_flathier-material .
elseif lv_count = '7' .
t_flathier-lv7_name = t_flathier-material .
elseif lv_count = '8' .
t_flathier-lv8_name = t_flathier-material .
elseif lv_count = '9' .
t_flathier-lv9_name = t_flathier-material .
elseif lv_count = '10' .
t_flathier-lv10_name = t_flathier-material .
endif.
DO lv_count TIMES .
lv_count = lv_count - 1.
IF lv_count = 1.
EXIT.
ENDIF.
READ TABLE t_hmat WITH KEY
hieid = lv_hieid
nodeid = lv_id.
IF sy-subrc = 0.
CLEAR lv_id.
CASE lv_count.
WHEN '11' .
MOVE : t_hmat-nodename+3 TO t_flathier-lv11_name,
t_hmat-parentid TO lv_id.
WHEN '10' .
MOVE : t_hmat-nodename+3 TO t_flathier-lv10_name,
t_hmat-parentid TO lv_id.
WHEN '9' .
MOVE : t_hmat-nodename+3 TO t_flathier-lv9_name,
t_hmat-parentid TO lv_id.
WHEN '8' .
MOVE : t_hmat-nodename+3 TO t_flathier-lv8_name,
t_hmat-parentid TO lv_id.
WHEN '7' .
MOVE : t_hmat-nodename+3 TO t_flathier-lv7_name,
t_hmat-parentid TO lv_id.
WHEN '6' .
MOVE : t_hmat-nodename+3 TO t_flathier-lv6_name,
t_hmat-parentid TO lv_id.
WHEN '5' .
MOVE : t_hmat-nodename+3 TO t_flathier-lv5_name,
t_hmat-parentid TO lv_id.
WHEN '4' .
MOVE : t_hmat-nodename+3 TO t_flathier-lv4_name,
t_hmat-parentid TO lv_id.
WHEN '3' .
MOVE : t_hmat-nodename+3 TO t_flathier-lv3_name,
t_hmat-parentid TO lv_id.
WHEN '2' .
MOVE : t_hmat-nodename+3 TO t_flathier-lv2_name.
ENDCASE.
ENDIF.
ENDDO.
Populate data for level 1 (Class Type)
READ TABLE t_hmat WITH KEY
hieid = lv_hieid
tlevel = 1.
IF sy-subrc = 0.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
EXPORTING
input = t_hmat-nodename
IMPORTING
output = e_t_data-0class_type.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = e_t_data-0class_type
IMPORTING
output = e_t_data-0class_type.
ENDIF.
populate data to extraction structure ( removing prefixe 'class type')
MOVE : lv_hieid TO e_t_data-hieid,
t_flathier-lv2_name TO e_t_data-xhier_lv1,
t_flathier-lv3_name TO e_t_data-xhier_lv2,
t_flathier-lv4_name TO e_t_data-xhier_lv3,
t_flathier-lv5_name TO e_t_data-xhier_lv4,
t_flathier-lv6_name TO e_t_data-xhier_lv5,
t_flathier-lv7_name TO e_t_data-xhier_lv6,
t_flathier-lv8_name TO e_t_data-xhier_lv7,
t_flathier-lv9_name TO e_t_data-xhier_lv8,
t_flathier-lv10_name TO e_t_data-xhier_lv9,
t_flathier-lv11_name TO e_t_data-xhie_lv10,
t_flathier-material TO e_t_data-0MATL_GROUP.
APPEND e_t_data.
CLEAR e_t_data.
ENDLOOP.
s_counter_datapakid = s_counter_datapakid + 1.
IF s_counter_datapakid > 1 .
RAISE no_more_data.
ENDIF.
ENDIF. "Initialization mode or data extraction ?
ENDFUNCTION.
As now when I run it in Tcode RSA3 it give only one data packet of some 5k to 6k records.
Thanks in advance for your help.
Pawan.Hi PS,
Instead of
SELECT * FROM /BI0/HMATL_GROUP INTO CORRESPONDING FIELDS OF
TABLE t_hmat
WHERE hieid IN l_r_hieid
AND objvers = 'A' .
code should look like this .
OPEN CURSOR WITH HOLD S_CURSOR FOR
SELECT (S_S_IF-T_FIELDS) FROM /BI0/HMATL_GROUP
FETCH NEXT CURSOR S_CURSOR
APPENDING CORRESPONDING FIELDS
OF TABLE E_T_DATA
PACKAGE SIZE S_S_IF-MAXSIZE.
For more information refer to sample code of fm "RSAX_BIW_GET_DATA_SIMPLE"
Hope that helps.
Regards
Mr Kapadia
***Assigning points is the way to say thanks in SDN.*** -
[HELP] data-sources.xml on META-INF for deployment
Hello,
I'm having a problem in the configuration of POOL OF CONNECTIONS, I created the file and data-sources.xml orion-application.xml, and I am not able to add the same folder META-INF when I create the deploy the application (EAR). What can I do for the time that I generate the deploy the files have to go to the right folder.
Thank now ...
I am using:
JDeveloper 10.1.3.3If application is to run on embedded OC4J, a EAR file is not required.
1. Create a datasource, either declaratively in the data-sources.xml file or in the Connections Navigator or in the Global/Project DataSources.
2. Specify the data source in the application.
3. Run the application in the embedded OC4J. -
[HELP] data-sources.xml on META-INF for deployment - Jdev
Hello,
I'm having a problem in the configuration of POOL OF CONNECTIONS, I created the file and data-sources.xml orion-application.xml, and I am not able to add the same folder META-INF when I create the deploy the application (EAR). What can I do for the time that I generate the deploy the files have to go to the right folder.
Thank now ...
I am using:
JDeveloper 10.1.3.3If application is to run on embedded OC4J, a EAR file is not required.
1. Create a datasource, either declaratively in the data-sources.xml file or in the Connections Navigator or in the Global/Project DataSources.
2. Specify the data source in the application.
3. Run the application in the embedded OC4J. -
Data source to be created on CDPOS table in CRM.
Hi
I have to create a data source on CDPOS table in CRM. I would like to know is it necessary
for me to include or join it in infoset query with CDHDR table.
In my case I do not want to extract all the records from CDPOS , only the ones with the
date fields changed and which has tab_key as *zdtcvn(say). The valid records matching this criteria
won't be too much. So still do i need to take into consideration the CDHDR table to improve the
index thing...
Please advise.
Thanks in advance
Regards,
kate.Hi Kate,
This will be depend upon your requirement , if u need to extract header level info also like who changed this document what is the time...e.t.c..THEN u need to add CDHDR also..Otherwise CDPOS is enough....
Assign points , If useful... -
Hi All,
I am reading notepads files and inserting data in sql tables from the notepad-
while performing sql bulk copy on this line it throws exception - "bulkcopy.WriteToServer(dt); -"data type related(mentioned in subject )".
Please go through my logic and tell me what to change to avoid this error -
public void Main()
Dts.TaskResult = (int)ScriptResults.Success;
string[] filePaths = Directory.GetFiles(@"C:\Users\jainruc\Desktop\Sudhanshu\master_db\Archive\test\content_insert\");
for (int k = 0; k < filePaths.Length; k++)
string[] lines = System.IO.File.ReadAllLines(filePaths[k]);
//table name needs to extract after = sign
string[] pathArr = filePaths[0].Split('\\');
string tablename = pathArr[9].Split('.')[0];
DataTable dt = new DataTable(tablename);
|
string[] arrColumns = lines[1].Split(new char[] { '|' });
foreach (string col in arrColumns)
dt.Columns.Add(col);
for (int i = 2; i < lines.Length; i++)
string[] columnsvals = lines[i].Split(new char[] { '|' });
DataRow dr = dt.NewRow();
for (int j = 0; j < columnsvals.Length; j++)
//Console.Write(columnsvals[j]);
if (string.IsNullOrEmpty(columnsvals[j]))
dr[j] = DBNull.Value;
else
dr[j] = columnsvals[j];
dt.Rows.Add(dr);
SqlConnection conn = new SqlConnection();
conn.ConnectionString = "Data Source=UI3DATS009X;" + "Initial Catalog=BHI_CSP_DB;" + "User Id=sa;" + "Password=3pp$erv1ce$4";
conn.Open();
SqlBulkCopy bulkcopy = new SqlBulkCopy(conn);
bulkcopy.DestinationTableName = dt.TableName;
bulkcopy.WriteToServer(dt);
conn.Close();
Issue 1:-
I am reading notepad: getting all column and values in my data table now while inserting for date and time or integer field i need to do explicit conversion how to write for specific column before bulkcopy.WriteToServer(dt);
Issue 2:- Notepad does not contains all columns nor in specific sequence in that case i can add few column ehich i am doing now but the issue is now data table will add my columns + notepad columns and while inserting how to assign in perticular colums?
sudhanshu sharma Do good and cast it into river :)Hi,
I think you'll have to do an explicit column mapping if they are not in exact sequence in both source and destination.
Have a look at this link:
https://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlbulkcopycolumnmapping(v=vs.110).aspx
Good Luck!
Kaur.
Please mark as answer if this resolves your issue. -
Urgent - Please help - Data source
Hi,
I have a two tables (table A and table B)in a form. Table B is based on table A. Now, I have to add a table C into the picture. Table C is based on table B. How can I show results with table B and table C together in a tabular format? So, when table A changes, records in tabular format will also reflect the changes. Thank you in advance.
I think it has something to do with the relations within the datablock. But, I don't know how to set that up. Please help.Hello!
You can use non base table items to solve.
Create the relation properly and pass the data to non base table item.
Different triggers can be used at Data block level to populate the data.
Best Regards,
Manzur Elahi -
Error in request transport of a newly created data source
Hello,
I'm implementing a BI 7.0 project for three factories of a company in a single BI system. I have to separate their CO-PA data sources, so I created a new DS in tcode 'keb0' with the same fields of the standart CO-PA DS named 1_CO_PA100UAKK, and got a request in test R/3 source system.
During the transport of this request to the second test source system,which is closed to implementation, I got an error message, saying that 'Table ZOXARD0003 could not be activated, (E- Nametab for table ZOXARD0003 cannot be generated ) and Ended with return code: ===> 8 <==='.
ZOXARD0003 is the table of the new DS I created.
But, as a conflict, I can see the new DS in the second source system, in its 'rsa6' and see ZOXARD0003 table in tcode 'se11' of the second source system. How could this happen?
Could you help me about this? What does this message mean? Should I do somethingelse after creating DS in 'keb0' ?
Thanks for your help.Hi Deepak,
Thanks for reply.
I checked the table and got warnings about enhancement, but not any error.
And yes, I did a quick extractor check in test system and it has no records as you had assumed.
What sould I do? Could you explain step by step, please? I am new in BW.
Thank you very much. -
Import option is not showing the Data Source created using ODBC
Hi all,
I'm new to OBIEE, just installed OBIEE 10g in my system with the help of some reply from this Forum (thanks to Kalyan for this).
Now when I tried to create new rpd, the Import option is not showing the Data source I have created. I have created new Datasource in the SystemDSN tab of the ODBC Administrator window,I have tried this by creating the Datasource in the UserDNS tab as well.
Mine is Windows 7 Ultimate. The new data source which I have created through the ODBC Administrator window is to connect to SQL 2008 (I'm trying to get some table from SQL 2008 database), I don't have Oracle data base.
While creating the Data source ODBC Administrator is showing only two drives (SQL Server and SQL Server Native Client 10.0 ) , so I have created the Data source using the SQL Server Native Client 10.0 drive.
Can some one help me to understand the issue and to solve it.
Thanks,
MithunBy calling your cellular data provider.
-
How to identify whether any data source is created for a table?
hi all,
How to identify whether any extractions is been carried out for a particular table, view or function module(generic extraction)? from r/3.
bcos i need to create an extraction for a table, view and function module. But iam not sure whether any extractions is already been created for those tables, view, function modules??
thanxs
harithaHi,
By passing the following values as selection to table ROOSOURCE we can find whether any data source has been created or not .
EXMETHOD = V
EXTRACTOR = Table name
hope it helps..
regards,
raju -
Power View in SharePoint Server - The data extension type for a data source is not valid
Hi All,
All of a sudden I am getting following error when trying to create Power View report using shared report data source (no error testing the connection):
"The current action cannot be completed. The data extension type for a data source
'http://dev/Shared Ducuments/Sales.rsds' is not valid for this operation"
I already have a data source (I had created it after creating my site collection a week ago) and when I use this source to create Power View report then there is no error but I am getting above error when I create another similar data source and use it to create
a Power View report.
Please help me to resolve the error.
ThanksI am going nuts! I had selected 'Analysis Services' instead of 'Microsoft BI Semantic Model for Power View'
-
How to handel parametrs when bi answers is data source
Hi All,
I created a report which having obi answers as data source.how to create a parameters for this report same like prompts in bi answer report.
can any one help me in this.
Thanks,
KSSThe native XML driver is incompatible with ADO.NET DataSet XML. The specific issue is that the driver cannot handle the recursive definition on "Schema" that the .NET DataSet XML uses.
The workaround is to create a .NET class that Web References, invoke the Web Service method for the DataSet, then returns it.
Use the ADO.NET (XML) driver in Crystal Report to consume the .NET data source.
Note - when you deploy your report, ensure you deploy the DLL for the .NET class you've created.
Sincerely,
Ted Ueda
Maybe you are looking for
-
The question pretty much says it all: the old versions of Firefox used to allow you to select "open" when downloading a file instead of saving it to a directory. I am fully aware that that's what selecting "open" does anyway, but I still like that op
-
How to create ddl for partitioning for a child table?
Hi folks, I am new to the partitioning topic. I red some manuals and tutorials but I did not found exactly what I need. So I would ask for your help. I have two tables. The partitioning of the master table is clear: create TABLE ASP_PARTITION_TABLE_M
-
TS2756 There is no option called personal hotspot in my settings. so what should i do?
There is no option called personal hotspot in my settings. so what should i do?
-
Using a BOL Programming on an API level?
Hi Experts, For the time being I was pretty sure that SAP CRM developers shouldn't combine layers when developing some enhancement. However recently I had a problem to convince my colleagues and myself as well - why not? I understand all the architec
-
Safari can not open the page,too many redirect occurred,what can I do to remedy
I see a massage saying safari can not find the site because too many redierect occurred,what can I do to remedy the problem