Standard Inport Package is getting failed at Convert Data Task
Hi All,
When running standard import package on any application, it's getting failed at Convert Data Task.
Do any body faced similar kind of issue, please let me know what might be the cause or any solution to the above issue would be appreciated.
Regards,
Sreekanth.
Hi,
The format of dimension members in the external file is different from the BPC internal format. Check your conversion file. The problem is with your conversion file.
For example:
In the external file Time dimension values is given as Jan, Feb, Mar etc..
In BPC asume you are maintaining time dimension members as 2008.Jan, 2008.Feb etc.
Then you should define this in conversion file. Jan should be replaced by 2008.Jan when it enter BPC application. Also, the values you define in the Internal format should be maintained as master data (dimension members).
regards,
Lokesh Nandula
Similar Messages
-
Conversion failed when converting date and/or time from character string
Hi experts,
I'm trying running a query in Microsoft Query but it gives the following error message:
"conversion failed when converting date and/or time from character string"
when asks me the data I'm inserting 31-01-2014
i've copy the query form the forum:
SELECT T1.CardCode, T1.CardName, T1.CreditLine, T0.RefDate, T0.Ref1 'Document Number',
CASE WHEN T0.TransType=13 THEN 'Invoice'
WHEN T0.TransType=14 THEN 'Credit Note'
WHEN T0.TransType=30 THEN 'Journal'
WHEN T0.TransType=24 THEN 'Receipt'
END AS 'Document Type',
T0.DueDate, (T0.Debit- T0.Credit) 'Balance'
,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')<=-1),0) 'Future'
,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')>=0 and DateDiff(day, T0.DueDate,'[%1]')<=30),0) 'Current'
,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')>30 and DateDiff(day, T0.DueDate,'[%1]')<=60),0) '31-60 Days'
,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')>60 and DateDiff(day, T0.DueDate,'[%1]')<=90),0) '61-90 Days'
,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')>90 and DateDiff(day, T0.DueDate,'[%1]')<=120),0) '91-120 Days'
,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')>=121),0) '121+ Days'
FROM JDT1 T0 INNER JOIN OCRD T1 ON T0.ShortName = T1.CardCode
WHERE (T0.MthDate IS NULL OR T0.MthDate > ?) AND T0.RefDate <= ? AND T1.CardType = 'C'
ORDER BY T1.CardCode, T0.DueDate, T0.Ref1Hi,
The above error appears due to date format is differnt from SAP query generator and SQL server.
So you need convert all date in above query to SQL server required format.
Try to convert..let me know if not possible.
Thanks & Regards,
Nagarajan -
I have a table-valued function that run in sql 2005 and when try to execute in sql 2008 r2, return the next "Conversion failed when converting date and/or time from character string".
USE [Runtime]
GO
/****** Object: UserDefinedFunction [dbo].[f_Pinto_Graf_P_Opt] Script Date: 06/11/2013 08:47:47 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE FUNCTION [dbo].[f_Pinto_Graf_P_Opt] (@fechaInicio datetime, @fechaFin datetime)
-- Declaramos la tabla "@Produc_Opt" que será devuelta por la funcion
RETURNS @Produc_Opt table ( Hora datetime,NSACOS int, NSACOS_opt int)
AS
BEGIN
-- Crea el Cursor
DECLARE cursorHora CURSOR
READ_ONLY
FOR SELECT DateTime, Value FROM f_PP_Graficas ('Pinto_CON_SACOS',@fechaInicio, @fechaFin,'Pinto_PRODUCTO')
-- Declaracion de variables locales
DECLARE @produc_opt_hora int
DECLARE @produc_opt_parc int
DECLARE @nsacos int
DECLARE @time_parc datetime
-- Inicializamos VARIABLES
SET @produc_opt_hora = (SELECT * FROM f_Valor (@fechaFin,'Pinto_PRODUC_OPT'))
-- Abre y se crea el conjunto del cursor
OPEN cursorHora
-- Comenzamos los calculos
FETCH NEXT FROM cursorHora INTO @time_parc,@nsacos
/************ BUCLE WHILE QUE SE VA A MOVER A TRAVES DEL CURSOR ************/
WHILE (@@fetch_status <> -1)
BEGIN
IF (@@fetch_status = -2)
BEGIN
-- Terminamos la ejecucion
BREAK
END
-- REALIZAMOS CÁLCULOS
SET @produc_opt_parc = (SELECT dbo.f_P_Opt_Parc (@fechaInicio,@time_parc,@produc_opt_hora))
-- INSERTAMOS VALORES EN LA TABLA
INSERT @Produc_Opt VALUES (@time_parc,@nsacos, @produc_opt_parc)
-- Avanzamos el cursor
FETCH NEXT FROM cursorHora INTO @time_parc,@nsacos
END
/************ FIN DEL BUCLE QUE SE MUEVE A TRAVES DEL CURSOR ***************/
-- Cerramos el cursor
CLOSE cursorHora
-- Liberamos los cursores
DEALLOCATE cursorHora
RETURN
ENDYou can search the forums for that error message and find previous discussions - they all boil down to the same problem. Somewhere in your query that calls this function, the code invoked implicitly converts from string to date/datetime. In general,
this works in any version of sql server if the runtime settings are correct for the format of the string data. The fact that it works in one server and not in another server suggests that the query executes with different settings - and I'll assume for
the moment that the format of the data involved in this conversion is consistent within the database/resultset and consistent between the 2 servers.
I suggest you read Tibor's guide to the datetime datatype (via the link to his site below) first - then go find the actual code that performs this conversion. It may not be in the function you posted, since that function also executes other functions.
You also did not post the query that calls this function, so this function may not, in fact, be the source of the problem at all.
Tibor's site -
SAP query error - 1). [Microsoft][SQL Server Native Client 10.0][SQL Server]Conversion failed when converting date and/or time from character string. 'Received Alerts' (OAIB)
SELECT
CASE WHEN T0.DocStatus = 'O' THEN 'OPEN'
WHEN T0.DocStatus = 'C' THEN 'CLOSED' END AS 'Document Status',
T0.DocDate AS 'Posting Date',
T0.DocNum AS 'Doc.No',
T0.NumAtCard,
T0.TransId AS 'Trans. No.',
T0.Comments AS 'Remarks',
T0.CardCode AS 'Offset Acct',
T0.CardName AS 'Offset Acct Name',
sum(T0.DocTotal) + (T0.WTSum) as 'DocTotal',
T3.DueDate AS 'Cheque Date',
T3.CheckSum AS 'Amount'
FROM ODPO AS T0 LEFT OUTER JOIN
VPM2 AS T1 ON T0.ObjType = T1.InvType AND T0.DocEntry = T1.DocEntry LEFT OUTER JOIN
OVPM AS T2 ON T2.DocEntry = T1.DocNum LEFT OUTER JOIN
VPM1 AS T3 ON T2.DocEntry = T3.DocNum
where T0.DocDate>='[%0]' and T0.DocDate<='[%1]'Hi,
Try this:
SELECT
CASE WHEN T0.DocStatus = 'O' THEN 'OPEN'
WHEN T0.DocStatus = 'C' THEN 'CLOSED' END AS 'Document Status',
T0.DocDate AS 'Posting Date',
T0.DocNum AS 'Doc.No',
T0.NumAtCard,
T0.TransId AS 'Trans. No.',
T0.Comments AS 'Remarks',
T0.CardCode AS 'Offset Acct',
T0.CardName AS 'Offset Acct Name',
sum(T0.DocTotal) + (T0.WTSum) as 'DocTotal',
T3.DueDate AS 'Cheque Date',
T3.CheckSum AS 'Amount'
FROM ODPO T0 LEFT OUTER JOIN
VPM2 T1 ON T0.ObjType = T1.InvType AND T0.DocEntry = T1.DocEntry
LEFT OUTER JOIN
OVPM T2 ON T2.DocEntry = T1.DocNum LEFT OUTER JOIN
VPM1 T3 ON T2.DocEntry = T3.DocNum
where T0.DocDate >= '[%0]' and T0.DocDate <='[%1]'
group by T0.DocStatus,T0.DocDate ,
T0.DocNum ,
T0.NumAtCard,
T0.TransId ,
T0.Comments ,
T0.CardCode,
T0.CardName ,
T0.WTSum ,
T3.DueDate ,
T3.CheckSum
Thanks & Regards,
Nagarajan -
Parent package are getting failed
hi
i have parent package , which is calling child package using execute package task.
i have error handling in on of the data flow task in child package, so if error comes , the parent package still continue run for another files.
now the issue is , even if child package successful (with handling error inside), the parent package is logging failed,
ideally, it should be success, as we already handling error ,when task gets failed in child package.
i tried to set propagate , on error to false, still getting error on parent package.
how to solve itIf a child package is failing, but handled then the parent will still fail.
Here is a workaround for that. You need to add an event handler on the Execute Package Task with Propagate set to False.
Please mark the post as answered if it answers your question | My SSIS Blog:
http://microsoft-ssis.blogspot.com |
Twitter -
Im getting an error when running a procedure that includes this code.
I need to select from a dynamic column name and save the result in a variable, but seem to be having trouble with the values being fed to sp_executesql
DECLARE @retval AS DECIMAL(12,2)
DECLARE @MonthVal VARCHAR(20), @SpreadKeyVal INT
DECLARE @sqlcmd AS NVARCHAR(150)
DECLARE @paramdef NVARCHAR(150)
SET @MonthVal = 'Month' + CAST(@MonthNumber AS VARCHAR(2) );
SET @SpreadKeyVal = @SpreadKey; --CAST(@SpreadKey AS VARCHAR(10) );
SET @sqlcmd = N' SELECT @retvalout = @MonthVal FROM dbo.CourseSpread WHERE CourseSpreadId = @SpreadKeyVal';
SET @paramdef = N'@MonthVal VARCHAR(20), @SpreadKeyVal INT, @retvalout DECIMAL(12,2) OUTPUT'
--default
SET @retval = 0.0;
EXECUTE sys.sp_executesql @sqlcmd,@paramdef, @MonthVal = 'Month4',@SpreadKeyVal = 1, @retvalout = @retval OUTPUT;
SELECT @retval
DECLARE @return_value DECIMAL(12,2)
EXEC @return_value = [dbo].[GetSpreadValueByMonthNumber]
@SpreadKey = 1,
@MonthNumber = 4
SELECT 'Return Value' = @return_value
Msg 8114, Level 16, State 5, Line 1
Error converting data type varchar to numeric.Please follow basic Netiquette and post the DDL we need to answer this. Follow industry and ANSI/ISO standards in your data. You should follow ISO-11179 rules for naming data elements. You should follow ISO-8601 rules for displaying temporal data. We need
to know the data types, keys and constraints on the table. Avoid dialect in favor of ANSI/ISO Standard SQL. And you need to read and download the PDF for:
https://www.simple-talk.com/books/sql-books/119-sql-code-smells/
>> I need to select from a dynamic column name and save the result in a variable, but seem to be having trouble with the values being fed to sp_executesql <<
This is so very, very wrong! A column is an attribute of an entity. The idea that you are so screwed up that you have no idea if you want
the shoe size, the phone number or something else at run time of this entity.
In Software Engineering we have a principle called cohesion that says a model should do one and only one task, have one and only one entry point, and one and only one exit point.
Hey, on a scale from 1 to 10, what color is your favorite letter of the alphabet? Yes, your mindset is that level of sillyity and absurdity.
Do you know that SQL is a declarative language? This family of languages does not use local variables!
Now think about “month_val” and what it means. A month is a temporal unit of measurement, so this is as silly as saying “liter_val” in your code. Why did you use “sp_” on a procedure? It has special meaning in T-SQL.
Think about how silly this is:
SET @month_val = 'Month' + CAST(@month_nbr AS VARCHAR(2));
We do not do display formatting in a query. This is a violation of at the tiered architecture principle. We have a presentation layer. But more than that, the INTERVAL temporal data type is a {year-month} and never just a month. This is fundamental.
We need to see the DDL so we can re-write this mess. Want to fix it or not?
--CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
in Sets / Trees and Hierarchies in SQL -
Hello Experts,
I am getting the above error, when i try to execute the query.
DECLARE @START AS DATETIME
DECLARE @END AS DATETIME
SET @START = CONVERT(VARCHAR(10), GETDATE()-1,101) + '00:00:00'
SET @END = CONVERT(VARCHAR(10), GETDATE()-1,101) + '23:59:59'
Any suggestions as to how to get out of this error.
Appreciate any help/suggestions.
Thanks!
RahmanThanks Latheesh,
I am able to execute the above query, but when i implement the same in my query, i am getting another error.
Invalid column name 'DATETIME'.
Invalid column name 'DATETIME'.
Invalid column name 'DATETIME'.
Invalid column name 'DATETIME'.
DECLARE @START AS DATETIME
DECLARE @END AS DATETIME
SET @START = CONVERT(VARCHAR(10), GETDATE()-1,101) + ' 00:00:00'
SET @END = CONVERT(VARCHAR(10), GETDATE()-1,101) + ' 23:59:59'
SELECT
SUBSTRING(A1.TGT,2,4) SATC,
SUBSTRING(DGT,2,4) COFS,
(CASE WHEN SG.S_G_E_NM LIKE '%S%' THEN 'SALES' WHEN SG.S_G_E_NM LIKE '%U%' THEN 'SUPPORT' WHEN SG.S_G_E_NM LIKE '%S%' THEN 'CUSTSERV' ELSE 'UNKNOWN' END) SKILL,
COUNT(*) TOTAL,
AVG(T1.NET) AS A,
AVG(T1.TALK + T1.HOLD + T1.WORK) AVGHTIME
FROM
SELECT * FROM TABLE WHERE (1=1)
AND DATETIME >= @START
AND DATETIME <=@END
AND PERIPH_ID IN (1111,2222,3333)
AND TGT_ID NOT IN (12457)
ANDSEQ_NBR IN (2)
AND DGT LIKE '8%2400'
AND TALK > 0
) AS T1
Any guesses as to what could be going wrong here?
Rahman -
SSIS Lookup Conversion failed when converting date and/or time from character string
Hi all,
I'm trying to do a lookup by passing a date, however (i'm guessing) one of the dates is in a bad format and is failing the component. How do I find the suspect row? I set both lookup outputs to flat file but it is just erroring and not outputting
anything. The date being passed in is in datetime format and destination is the same data type.Thanks for your suggestions. I have used ISDATE and MIN, MAX to find the maximum ranges. ISDATE is not returning 0 in both Source and Destination (so it looks like they're all valid). it looks like there are some null dates in from date
column. Would these throw a conversion error? I'm still a bit stumped as to why i'm getting a conversion error, 1900-01-01 00:00:00.000 is still a valid date even if it's basically null.
-- SOURCE MIN DATE = 2009-12-21 00:00:00.000
-- SOURCE MAX DATE = 2015-06-08 00:00:00.000
-- DESTINATION MIN FROM DATE = 1900-01-01 00:00:00.000
-- DESTINATION MIN TO DATE = 2005-01-15 00:00:00.000
-- DESTINATION MAX FROM DATE = 2015-10-18 00:00:00.000
-- DESTINATION MAX TO DATE = 2145-12-31 00:00:00.000
I will also try JAKUB's suggestion to see if the package completes with a few rows. -
How to solve : Conversion failed when converting date and/or time from character string
hi there
my query :
cmd = new SqlCommand("SELECT RTRIM(invoiceNo) as [Order No.],RTRIM(InvoiceDate) as [Order Date],RTRIM(SubTotal) as [SubTotal],RTRIM(VATPer) as [Vat+ST %],RTRIM(VATAmount) as [VAT+ST Amount],RTRIM(DiscountPer) as [Discount %],RTRIM(DiscountAmount) as [Discount Amount],RTRIM(GrandTotal) as [Grand Total],RTRIM(TotalPayment) as [Total Payment],RTRIM(PaymentDue) as [Payment Due] from Invoice_Info where InvoiceDate between @d1 and @d2 order by InvoiceDate desc", con);
cmd.Parameters.Add("@d1", SqlDbType.DateTime, 30, "InvoiceDate").Value = dtpInvoiceDateFrom.Value.Date;
cmd.Parameters.Add("@d2", SqlDbType.DateTime, 30, "InvoiceDate").Value = dtpInvoiceDateTo.Value.Date;
i use date timepicker / vs2010 / sql server 2008 r2
tnxi change the type of my column(InvoiceDate column) to isDate but it doesnt work and error again ....
What exactly does this mean? What was the data type before the change? What is it now? Can you show us the CREATE TABLE statement for the table?
i want send my source code /database for you and you chek it plz
Generally, you should not expect people to solve problem over mail. You can upload code and database to Dropbox, Skydrive or similar service if you people to look at it.
Erland Sommarskog, SQL Server MVP, [email protected] -
Exchange rate fields get failed when uploading data
Hi,
I have a problem when uploading purchasing data (2LIS_02_SCL) from R/3 to BW. Basically the exchange rate value is right in the PSA but NOT in the cube.
I just wondering what did they do when transfering the exchange rate data from PSA to cube. I have already checked the transfer rules and update rules, but no logic in there. So the logic should be ONLY pass the value, but somehow different value coming up.
Maybe you can have different think about this ?
FYI, I have already transfered global settings and exchange rates from R/3 to the BW. Is there any settings that I missed ?
Very appreciate of your help.
Thanks a lot
Martin DarmawiHi Roberto,
Thanks for your answer.
I think it has aggregation behaviour.
Do you know how I can avoid aggregation behaviour for a keyfigure ? Because I can't edit aggregation field and I tried to change the exception aggregation field with First Value, No Aggregation and Avarage value but it does not work.
Please let me know what you think.
Thanks and Appreciate for your help,
-Martin Darmawi- -
Hello experts,
We are facing one very weird problem. We are loading actuals from a flat file to consol application. We have transformation written to map all unavailable brands to NOT_ASSIGNED group. We have list of all brands which are not maintained in brand dimension. These brands are maintained in conversion file to move them to NOT_ASSIGNED.
This logic is working fine till last week. Now for 2 brands, sometimes the data is getting rejected though these brands are maintained in brand dimension. If we run the package manually, it does not reject the data for these brands. But when the package is running from schedule, it rejects data for those two brands.Sorry Roberto for the confusion. Here is the design of the package:
Following two scenarios are possible with each record in the data load:
1. Valid brand u2013 the brand is maintained in the brand dimension. No conversion is required. Let the record go as it comes.
2. Non-valid brand u2013 the brand is not a valid brand for BPC. This brand is not at all maintained in brand dimension. Map this record to NO_BRAND as NO_BRAND is not considered during reporting. All non-valid brands are maintained in conversion file to NO_BRAND to ensure no record has been missed in BPC.
These two brands are maintained properly in brand dimension. We have also fully optimized applications to keep consistency in application.
The package is scheduled to run every morning to bring actuals to Consol Application. Most of the time, this package gives reject list.
When we run this package by selecting NOW option, the behavior of this package is not getting changed. Most of the instances reject the data.
We have not changed anything. But weird behavior is sometimes this package doesnu2019t reject the records.
Hope this will give you enough information to help.
Thanks for all your informative ideas. They are really helpful. -
Error with standard Copy package
Hello!!
When I run the standard copy package selecting the option "Replace & clear data values" the execution finishes with status error and I receive the next error message in the log:
Item has already been added. Key in dictionary: '[Invalid time Member] - EN_NONE|DSP_INPUT|2004_UPA_SEPT|' Key being added: '[Invalid time Member] - EN_NONE|DSP_INPUT|2004_UPA_SEPT|'
If I run the package with the option "Merge" it executes OK.
Anybody help?
Thank you in advance
Pedro
Edited by: Pedro de las Heras on Aug 7, 2009 3:16 PMHello,
You probalby get this error message beacuse you have not setup the Work Status for this application. Please defined the Work Status you want to use on the appset level and then define the dimensions you want to use to control the work status on the application level. That should solve your issue.
Regards,
Marcel -
"Failed to convert using Adobe Export PDF"
for the past 24 hours, I've been attempting to convert a PDF to DOC but I keep getting "Failed to convert using Adobe Export PDF" Please help. I've logged in via the website and the convert tool, yet I still get the same message.
Thanks in advanceHello EPcommute
We aplogize for the inconvenience, it could be a temporary glitch. Request you to try after some time.
~Deepak -
Failed to retrieve data from the database using Crystal Reports XI R2
I am using Crystal reports XI R2 and using the Universal Web Connector (connecting to Coghead). When I put some some of the fields from the database and run Preview I get "Failed to retrieve data from the database." . Where is this message coming from and how can I track down what the issue is?
Hi Jamie,
When you are trying to Browse Data of a field it is not poping up any window menas, it is unable to interact with database and get the data from database.
Try to create a new report using ODBC with Xtreem Sample Database. If you get the data in your report without any error then your connector is not working / unable to pull the data into your report.
You can find the supported platforms document in below link
http://support.businessobjects.com/documentation/supported_platforms/xi_release2/default.asp
Thanks,
Sastry -
"Failed to retrieve data from OVM Manager"
I'm trying to setup Cloud Control 12c Private Cloud environment. My machines in OVM pool have local disks so there is a repository per physical machine, plus one shared repository on NFS (OVM lists all those repositories in its UI)
When I try to navigate to VM Manager->Administration->Storage Repository page here is an error dialog I get:
"Failed to retrieve data from OVM Manager. Please check log file for details"
I've tried performing VM Manager->Synchronize, but that didn't help.
Let me note that I can go to other pages like Administration->Network without any problem.
What is a log file to look into? I tried looking under /u01/app/oracle/Middleware/oms/sysman/log but found nothing useful.Hi Diptesh,
What is your crystal reports version ? CRXI or higher?
And does your filter bject consists of apostrophie s fields?
If this is the case then this is a known issue try installing the latest service packs or fix packs to see if it resolves the issue?
Regards,
Vinay
Maybe you are looking for
-
Web Analysis reports charts are not visible in work space
Hi All, I have created couple of reports in web analysis 11.1.1.3 with charts embeeded in that reports and when i open the same report in the workspace iam not able to see the chart. If any one have faced this issue give me an idea . Following are th
-
How can you get your music to download in numerical order?
How do you get music to download in numerical order?
-
Hello i got this problem with my nokia 5230.I insert my main sim card and it doesn't show no zone it's in offline mode.And i can't change another mode it just shows no sim card inserted.... I put another sim card in it works just fine and asks to run
-
How to filll an image made with the pen tool
when i change the fill, only half goes through properly. its probably a simple fix, im just not sure what im doing wrong. Any ideas will help!
-
Access master data in update rules
Hi, I try to calculate a weight in my update rules. Therefore I need the product weight and the number of peaces. I try to read the product weight from master data. The problem is, that it always calculates zero as the result. Is it possible to read