Ffmpeg ERROR: audio conversion failed: Unknown encoder 'libmp3la
While i use youtube-dl script with -x --audio-format mp3 option i get this error:
ERROR: audio conversion failed: Unknown encoder 'libmp3lame'
[bahaa@Bahaa ~]$ pacman -Qs lame
local/lame 3.99.5-2
A high quality MPEG Audio Layer III (MP3) encoder
local/twolame 0.3.13-7
An optimized MPEG Audio Layer 2 (MP2) encoder
[bahaa@Bahaa ~]$
teckk wrote:
If you are trying to dump the audio from a youtube video with ffmpeg, and encode it to .mp3, troubleshoot what isn't working the way you wish.
Start by seeing if youtube-dl is working.
You can get the formats the video is available in with:
youtube-dl -F http://www.youtube.com/watch?v=123456789
You can usually get audio only using
youtube-dl -f 140 http://www.youtube.com/watch?v=123456789
That will be .aac or .m4a audio
You can leave it like that or to reencode to .mp3
Check if ffmpeg is working.
ffmpeg -i file.m4a -c:a libmp3lame -b:a 128k Oufile.mp3
Or if you have a video file that you want to dump the audio from into .mp3
ffmpeg -i file.mp4 -vn -c:a libmp3lame -b:a 128k Outfile.mp3
If you get an error about lame then check if lame is installed
pacman -Ss lame
Post if ffmpeg works ok for you.
[bahaa@Bahaa ~]$ youtube-dl -F https://www.youtube.com/watch?v=MzjOPtInf1c
[youtube] Setting language
[bahaa@Bahaa ~]$ youtube-dl https://www.youtube.com/watch?v=MzjOPtInf1c
[youtube] Setting language
[youtube] Confirming age
[youtube] MzjOPtInf1c: Downloading webpage
[youtube] MzjOPtInf1c: Downloading video info webpage
[youtube] MzjOPtInf1c: Extracting video information
[download] Destination: Why Do We Blink-MzjOPtInf1c.mp4
[download] 100% of 36.64MiB in 00:49
[bahaa@Bahaa ~]$ ffmpeg -i Why\ Do\ We\ Blink-MzjOPtInf1c.mp4 -vn -c:a libmp3lame -b:a 128k Outfile.mp3
ffmpeg version N-66269-g5eef704 Copyright (c) 2000-2014 the FFmpeg developers
built on Sep 14 2014 16:02:01 with gcc 4.9.1 (GCC)
configuration:
libavutil 54. 7.100 / 54. 7.100
libavcodec 56. 1.100 / 56. 1.100
libavformat 56. 4.101 / 56. 4.101
libavdevice 56. 0.100 / 56. 0.100
libavfilter 5. 1.100 / 5. 1.100
libswscale 3. 0.100 / 3. 0.100
libswresample 1. 1.100 / 1. 1.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Why Do We Blink-MzjOPtInf1c.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: isommp42
creation_time : 2014-10-17 18:20:58
Duration: 00:02:51.34, start: 0.000000, bitrate: 1793 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 1599 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 192 kb/s (default)
Metadata:
creation_time : 2014-10-17 18:20:59
handler_name : IsoMedia File Produced by Google, 5-11-2011
Unknown encoder 'libmp3lame'
[bahaa@Bahaa ~]$ pacman -Ss lame
extra/lame 3.99.5-2 [installed]
A high quality MPEG Audio Layer III (MP3) encoder
community/flam3 3.0.1-4
Tools to create/display fractal flames: algorithmically generated images and animations
community/toolame 02l-10
An optimized mpeg 1/2 layer 2 audio encoder
community/twolame 0.3.13-7 [installed]
An optimized MPEG Audio Layer 2 (MP2) encoder
[bahaa@Bahaa ~]$
Similar Messages
-
Hey peeps,
Im trying to publish a web gallery to be hosted on BC. Despite having what seem the correct settings im getting an error: FTP transfer failed ' unknown message'. Have checked with techs on BC. They say FTP working fine that end.
Any suggestions?Have you tried connecting to another FTP server in Lightroom?
For example, if you get a free Flickr account, can you login to it and upload a file to it?
If you can't upload to any server, then you have a general FTP-in-Lr problem, but if problem is only with BC then, well, it's time to start scrutinizing the BC settings..
PS - All my FTP'ing plugins have an enhanced FTP settings test feature designed to help you debug FTP settings, so another option is to download one of them, for example:
robcole.com - FTPAggregator
and experiment with settings tester:
To get here, you have to click 'View / Edit Additional Settings' (in plugin manager), then choose 'New' or 'Edit' from 'Sync Pairs' drop-down menu.
If test is unsuccessful, enable verbose logging (top section of plugin manager), and review the log file after test, or send to me.
If you have a problem running plugin, please contact me directly:
robcole.com - Contact Me
Rob -
We are getting faxes with 812 error - "Document conversion failed" in SOST
Hi
We are getting faxes with an 812 error - "Document conversion failed" in transaction SOST. The user is sometimes able to fax the number successfully, but other times fails - it is not consistent.
The conversion rules seem to be set up correctly, indeed, on a resubmit this often (but not always) works, so I don't think this is down to the conversion rules.
Is it a problem at the SAP side or the receiving system?
We enabled a trace but on analysis the only step that appears to be different in the failing ones is:
Status "Fehler" am Sendeauftrag gesetzt
Which I believe roughly translates that it failed to send - but why, and where can I find more detail?
Thanks
RossI also noticed in the trace that the faxes that work have the following lines:
Determined device type: POST2. OTF Device Type POST2
Format conversion from OTF to PS With Device Type POST2
Converting OTF to PS
Whereas the ones that have failed say:
Determined device type: PDF1. OTF Device Type PDF1
Format conversion from OTF to PDF
Conversion rules for this country PL (Poland) and 'blanks' in order of prioroty are:
PDF S POST2
PDF PL Polish S ID2PDF
PS POST2
PS PL Polish S I2SPOST
Is that correct?
Cheers
Ross -
Error: "Audio configuration contains unknown items"
After a few sessions I did on a song I get this error message. The song continues to work. But from time to time this error appears.
What does it mean? And how can I eliminate it?Maybe this happen bacause you put many additional info in your "Aple discussion" profile about the software that you use, but we can also say you the same as Logic message:
your detailed "Audio configuration" profile info contain a "unknow item"
Whitch is your audio interface?
G
PS: anyway, try to trash Logic preferences. -
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 -
Thank you for your help!!!
I've created a stored procedure to return results as xml. I'm having trouble figuring out why I'm getting the error message "Conversion failed when converting the nvarchar value '<tr>.....'
to data type int. It seems like the system doesn't know that I'm returning a string... Or, I'm doing something that I just don't see.
ALTER PROCEDURE [dbo].[p_getTestResults]
@xml NVARCHAR(MAX) OUTPUT
AS
BEGIN
CREATE TABLE #Temp
[TestNameId] int,
[MaxTestDate] [DateTime],
[Name] [nvarchar](50),
[Duration] [varchar](10)
DECLARE @body NVARCHAR(MAX)
;WITH T1 AS
SELECT DISTINCT
Test.TestNameId
, replace(str(Test.TotalTime/3600,len(ltrim(Test.TotalTime/3600))+abs(sign(Test.TotalTime/359999)-1)) + ':' + str((Test.TotalTime/60)%60,2)+':' + str(Test.TotalTime%60,2),' ','0') as Duration
,MaxTestDate = MAX(TestDate) OVER (PARTITION BY TM.TestNameId)
,TestDate
,TM.Name
,Test.TotalTime
,RowId = ROW_NUMBER() OVER
PARTITION BY
TM.TestNameId
ORDER BY
TestDate DESC
FROM
Test
inner join TestName TM on Test.TestNameID = TM.TestNameID
where not Test.TestNameID in (24,25,26,27)
INSERT INTO #Temp
SELECT
T1.TestNameId
,T1.MaxTestDate
,T1.[Name]
,T1.Duration
FROM
T1
WHERE
T1.RowId = 1
ORDER BY
T1.TestNameId
SET @body ='<html><body><H3>TEST RESULTS INFO</H3>
<table border = 1>
<tr>
<th> TestNameId </th> <th> MaxTestDate </th> <th> Name </th> <th> Duration </th></tr>'
SET @xml = CAST((
SELECT CAST(TestNameId AS NVARCHAR(4)) as 'td'
, CAST([MaxTestDate] AS NVARCHAR(11)) AS 'td'
, [Name] AS 'td'
, CAST([Duration] AS NVARCHAR(10)) AS 'td'
FROM #Temp
ORDER BY TestNameId
FOR XML PATH('tr'), ELEMENTS ) AS NVARCHAR(MAX))
SET @body = @body + @xml +'</table></body></html>'
DROP TABLE #Temp
RETURN @xml
END
closlYour dont need RETURN inside SP as you've declared @xml already as an OUTPUT parameter. Also you can RETURN only integer values using RETURN statement inside stored procedure as that's default return type of SP.
so just remove RETURN statement and it would work fine
To retrieve value outside you need to invoke it as below
DECLARE @ret nvarchar(max)
EXEC dbo.[P_gettestresults] @ret OUT
SELECT @ret
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
Encoding failed: unknown error in CS4 Windows 7
I'm getting the following error near the end of an Adobe Premiere CS4 sequence that I'm trying to encode:
- Source File: X:\scripts\rubyconf2009\premiere\19-nov-2009-14-10-east-meets-west-yuki-sonoda.prproj
- Output File: X:\scripts\rubyconf2009\premiere\19-nov-2009-14-10-east-meets-west-yuki-sonoda-large.mp4
- Preset Used: Custom
- Video: NTSC, 1280x720, 29.97 [fps], Progressive
- Audio: AAC, 64 [kbps], 48 kHz, Mono
- Bitrate: VBR, 1 Pass, Target 0,50, Max 1,00 [Mbps]
- Encoding Time: 01:03:33
25.01.2010 13:45:17 : Encoding Failed
Error compiling movie.
Unknown error.
I'm really not sure what the problem is. Everything seems fine in all my other movies but something in this one (and one other one) seem to be causing these failures. Any advice you could give would be really appreciated.What are the source files in this (and the other offending) Project? Do they match those Sequence/Project Presets?
Does the Audio in these source files differ in any way?
What is different about this/these Project(s), from the others?
Often, Encoding will fail because of gaps in the Video. However, the error message is usually "Failure to Return Frame."
Good luck,
Hunt -
Error compiling movie. Unknown error. In both Premiere and Media Encoder
I am trying to export a a batch of six sequences, out of Premiere Pro CC to my internal hard drive using the Apple ProRes 422 Quicktime setting. All of the sequence exports are failing in the first couple of seconds. This happens if I do them individually directly out of Premiere and if I export them out as a batch to Media Encoder. All get the same "Error compiling movie. Unknown error." error message. I have tried restarting the computer, that didn't fix it. I had the same problem with some other files yesterday but I was able to export them out individually OK. But with this batch, no dice. The sequences are all fully rendered. There aren't any problematic clips in the sequences, not that I can tell. None of the sequences is very long, only about 1-2 mins each.
Any ideas?
My system details are:
MacBook Pro (Retina, 15-inch, Mid 2014)
2.5 GHz Intel Core i7
16GB 1600 MHz DDR3
Graphics NVIDIA GeForce GT 750M 2048 MB
plenty of space on my startup diskError Compiling Movie... some past discussions and ideas
-http://helpx.adobe.com/premiere-pro/kb/error-compiling-movie-rendering-or.html
-http://helpx.adobe.com/premiere-elements/kb/error-error-compiling-movie-render.html
-and nested sequences http://forums.adobe.com/thread/955172 -
MIME content conversion failed error while processing "550 5.6.0" NDR using EWS API
While trying to process journal report having "550 5.6.0" NDR with the following content using EWS API
*Delivery has failed to these recipients or groups:
[email protected] ([email protected])
The email system had a problem processing this message. It won't try to deliver this message again.
[email protected] ([email protected])
The email system had a problem processing this message. It won't try to deliver this message again.
[email protected] ([email protected])
The email system had a problem processing this message. It won't try to deliver this message again.
Diagnostic information for administrators:
Generating server: ALMPR02MB001.namprd05.prod.outlook.com
[email protected]
Remote Server returned '550 5.6.0 M2MCVT.StorageError; storage error in content conversion'
[email protected]
Remote Server returned '550 5.6.0 M2MCVT.StorageError; storage error in content conversion'
[email protected]
Remote Server returned '550 5.6.0 M2MCVT.StorageError; storage error in content conversion'
Original message headers:
Received: from ALMPR02MB001.namprd05.prod.outlook.com ((11.255.110.102)) by
ALMPR02MB001.namprd05.prod.outlook.com ((11.255.110.102)) with
ShadowRedundancy id 15.0.851.11; Fri, 24 Jan 2014 12:20:42 +0000
Received: from AN2PR05MB011.namprd05.prod.outlook.com (10.255.202.146) by
ALMPR02MB001.namprd05.prod.outlook.com (11.255.110.102) with Microsoft SMTP
Server (TLS) id 15.0.851.11; Wed, 22 Jan 2014 19:25:20 +0000
Received: from AN1PR05MB018.namprd05.prod.outlook.com ([159.254.10.28]) by
AN1PR05MB018.namprd05.prod.outlook.com ([159.254.10.28]) with mapi id
15.00.0851.011; Wed, 22 Jan 2014 19:25:19 +0000
Content-Type: application/ms-tnef; name="winmail.dat"
Content-Transfer-Encoding: binary
From: "Aron,Shakton"
To: "[email protected]" ,
"[email protected]" , "[email protected]"
Subject: Updated: Drive # 3
Thread-Topic: Updated: Drive # 3
Thread-Index: AQHPF6evINDh6QBmQ0OJyeaK0OyWzQ==
Date: Wed, 22 Jan 2014 19:25:18 +0000
Message-ID: <[email protected]ok.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator: <[email protected]ok.com>
MIME-Version: 1.0
X-Originating-IP: [::]
Return-Path: [email protected]
X-Forefront-PRVS: 01018CB5B3
X-Forefront-Antispam-Report:
SFV:NSPM;SFS:(10019001)(6009001)(199002)(189002)(377454003)(2656002)(81816001)(81686001)(54316002)(49866001)(63696002)(65816001)(16799955002)(74876001)(47976001)(77982001)(81342001)(79102001)(94316002)(76576001)(56776001)(47736001)(50986001)(85852003)(54356001)(77096001)(74316001)(53806001)(69226001)(80976001)(4396001)(51856001)(83322001)(93136001)(85306002)(46102001)(19580395003)(74662001)(15975445006)(74706001)(15202345003)(76786001)(59766001)(83072002)(81542001)(76176001)(76796001)(87936001)(87266001)(92566001)(2201001)(47446002)(93516002)(33646001)(90146001)(31966008)(56816005)(74366001)(86362001)(24736002)(3826001);DIR:OUT;SFP:1102;SCL:1;SRVR:ALMPR02MB001;H:AN2PR05MB011.namprd05.prod.outlook.com;CLIP:::;FPR:;RD:InfoNoRecords;A:0;MX:1;LANG:en;*
I am getting the following error.
ERROR Message: MIME content conversion failed.
Stack Trace : at Microsoft.Exchange.WebServices.Data.ServiceResponse.InternalThrowIfNecessary()
at Microsoft.Exchange.WebServices.Data.ExchangeService.InternalGetAttachments(IEnumerable`1 attachments, Nullable`1 bodyType, IEnumerable`1 additionalProperties, ServiceErrorHandling errorHandling)
at Microsoft.Exchange.WebServices.Data.ExchangeService.GetAttachment(Attachment attachment, Nullable`1 bodyType, IEnumerable`1 additionalProperties)
Has anyone faced this issue? how s/he got past this?
Regards
Call
Send SMS
Add to Skype
You'll need Skype CreditFree via SkypeMokchhya-
I responded to your
StackOverflow post as well, but I'll respond here as well.
Are you using Exchange Server 2010 SP3 RU2? If not, that might fix the issue. Another poster ran into a similar error and they were also sending an email with an attachment:
http://social.technet.microsoft.com/Forums/en-US/fd7ef80e-f80b-47ed-883b-a34511c6233c/a-storage-transient-failure-has-occurred-during-content-conversion?forum=exchangesvrsecuremessaginglegacy.
The support page related to the fix is here:
http://support.microsoft.com/kb/2863310.
-Mimi -
Sign in failed - Unknown server error (-2) when trying to sign in to new playbook
I get the message "Sign in failed - Unknown server error (-2)" when I try to login to the Blackberry ID page of a new playbook during initial setup. This prevents me from continuing and using my device. A similar error message appears when I tap "Forgot password?" which is An unknown error has occured. Please try again (-2)
I have tried what others have done when they have unknown error (-6) which is turn off playbook and plug into desktop manager then update to reflash, but I continue to get the same error.
I know my BB ID username and password are correct because I can login to the web with them. Not sure what to do next.Just to test the simple things first, did you try to sign in using another credential?
If only yours fails, then is a RIM issue, otherwise is indeed your Playbook failure.
--- Catalonia, next state in Europe ----
Use the "solved" or "Like" icons if my answer helped you.
BES10 administrator for several customers.
"SMPTE Calculator" timecode APP developer for BB10 -
The report server has encountered a configuration error. Logon failed for the unattended execution account. (rsServerConfigurationError)
Log on failed. Ensure the user name and password are correct. (rsLogonFailed)
Logon failure: unknown user name or bad password
am using Windows integrated security,version of my sql server 2008R2
I have go throgh the different articuls, they have given different answers,
So any one give me the exact soluction for this problem,
Using service account then i will get the soluction or what?
pls help me out it is urgent based.
Regards
Thanks!Hi Ychinnari,
I have tested on my local environment and can reproduce the issue, as
Vaishu00547 mentioned that the issue can be caused by the Execution Account you have configured in the Reporting Services Configuration Manager is not correct, Please update the Username and Password and restart the reporting services.
Please also find more details information about when to use the execution account, if possible,please also not specify this account:
This account is used under special circumstances when other sources of credentials are not available:
When the report server connects to a data source that does not require credentials. Examples of data sources that might not require credentials include XML documents and some client-side database applications.
When the report server connects to another server to retrieve external image files or other resources that are referenced in a report.
Execution Account (SSRS Native Mode)
If you still have any problem, please feel free to ask.
Regards
Vicky Liu
Vicky Liu
TechNet Community Support -
The attempt to burn a disc failed, unknown error (261). Can't back up to CD
The attempt to burn a disc failed, unknown error (261). I get this message every time I try to back up my music from itunes on to a CD. It doesn't matter if I try to back up all music or only music purchased from itunes. So far I have not been able to back up anything. Can someone please help me!!!! I have tried everything on the support website from apple, and nothing has worked. I am beginning to get very frustrated.
Thanks+I know my computer is up to date on firmware, because I just bought this laptop 4 months ago - it's a brand new Dell Inspiron 1721.+
Actually, in that case I definitely think you should check your firmware. I just had a look at the 32-bit Vista downloads page at Dell for your Inspiron 1721, and there's firmware updates listed there for four different drive models, all dated within the last four months.
Head to the following Dell page and enter your model information to get to your Downloads page:
Dell drivers and downloads -
The attempt to burn a disc failed, unknown error (261) Can't back up on CD
The attempt to burn a disc failed, unknown error (261). I get this message every time I try to back up my music from itunes on to a CD. It doesn't matter if I try to back up all music or only music purchased from itunes. So far I have not been able to back up anything. Can someone please help me!!!! I have tried everything on the support website from apple, and nothing has worked. I am beginning to get very frustrated.
Thanks+I know my computer is up to date on firmware, because I just bought this laptop 4 months ago - it's a brand new Dell Inspiron 1721.+
Actually, in that case I definitely think you should check your firmware. I just had a look at the 32-bit Vista downloads page at Dell for your Inspiron 1721, and there's firmware updates listed there for four different drive models, all dated within the last four months.
Head to the following Dell page and enter your model information to get to your Downloads page:
Dell drivers and downloads -
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
Maybe you are looking for
-
Songs appear in grey on itunes screen
When I connect my ipod to the computer and go to iTunes I can see my songs but they are grey and not black. I can't click on any of the songs. I am trying to take the songs off of my ipod and put them back in my library in iTunes. I accidently erased
-
Queries About SAP Certification EXAM for SAP SD Module
M currently working as a End user in SAP SD and m interested to prepare for SAP certification. Is that i can do self study using materials and go ahead with SAP certification exam . Is that possible to write the certification or any T&C that i should
-
hello.can anyone help me plz i have problem with my macbook air i can't find image capture. there is nothing in progrem can i reinstall that progrem and how?thanks
-
UTunes playlists not showing upon iPad
I have iTunes on my pc and have created playlists there. Over time I have been periodically syncing my music with my iPad and iPhone. Recently I created some new playlists and sycned with my devices. When I open the devices' music app, the new playli
-
Clicks and pops when switching tracks..
Ive had my 2ndgen shuffle for about a month now. Have started to notice over the last few days that it makes a clicky/poppy noise when switching tracks. Thing is I dont remeber it doing this prior to a few days ago but cant be sure on this point to b